diff options
author | Luboš Luňák <l.lunak@collabora.com> | 2019-06-03 13:38:27 +0200 |
---|---|---|
committer | Luboš Luňák <l.lunak@collabora.com> | 2019-06-03 20:49:56 +0200 |
commit | a5fa2d2d64c7fc2ef096ae61fe2db327a42db2b4 (patch) | |
tree | 84bb4ae53d4fb86a2ab83fb691f27435988ee749 /desktop/scripts | |
parent | 81307dd74f26ba5c054dccd32dad507dc1510298 (diff) |
LD_BIND_NOW=1 if running under callgrind
It avoids all those calls to _dl_runtime_resolve_xsave that
in KCachegrind's call graph lead to nowhere and make navigating harder.
Change-Id: Ie3843676298d92b8ed6d598ead16f4d410ba8b2b
Reviewed-on: https://gerrit.libreoffice.org/73382
Tested-by: Jenkins
Reviewed-by: Luboš Luňák <l.lunak@collabora.com>
Diffstat (limited to 'desktop/scripts')
-rwxr-xr-x | desktop/scripts/soffice.sh | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/desktop/scripts/soffice.sh b/desktop/scripts/soffice.sh index 6f969b5af321..579915d1d6b3 100755 --- a/desktop/scripts/soffice.sh +++ b/desktop/scripts/soffice.sh @@ -126,6 +126,9 @@ for arg in "$@" $EXTRAOPT ; do export G_SLICE=always-malloc export GLIBCXX_FORCE_NEW=1 ;; + callgrind) + export LD_BIND_NOW=1 + ;; esac else echo "Error: Can't find the tool \"valgrind\", --valgrind option will be ignored" |