diff options
author | Peter Wu <peter@lekensteyn.nl> | 2016-05-12 16:11:52 +0200 |
---|---|---|
committer | Peter Wu <peter@lekensteyn.nl> | 2016-05-12 16:11:52 +0200 |
commit | 5e2cb57a11d8161986e8189ff34b6bb754ac7db9 (patch) | |
tree | 9f97c2e3227caa08b0a469ef5ce920aef99badb4 /sync-build.sh | |
parent | 599f29bb91b38e6d89441ceeeaf5d3db4b4e6679 (diff) | |
download | wireshark-notes-5e2cb57a11d8161986e8189ff34b6bb754ac7db9.tar.gz |
sync-build.sh: fix PKG_CONFIG_LIBDIR, enable gold linker
Gold linker seems marginally faster.
Diffstat (limited to 'sync-build.sh')
-rwxr-xr-x | sync-build.sh | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/sync-build.sh b/sync-build.sh index c1da5fc..b25bb9a 100755 --- a/sync-build.sh +++ b/sync-build.sh @@ -52,6 +52,7 @@ CXX=${CXX:-c++} _default_flags=\ -fsanitize=address _default_flags+=\ -fsanitize=undefined _default_flags+=\ -fdiagnostics-color +_default_flags+=\ -fuse-ld=gold # Supported in GCC since 2007 (?), but only in Clang 3.8 #_default_flags+=" -fdebug-prefix-map=$builddir=" #_default_flags+=" -fdebug-prefix-map=$remotesrcdir=" @@ -116,7 +117,7 @@ if $force_cmake || [ ! -e $builddir/CMakeCache.txt ]; then set -x && time \ CC=$CC CXX=$CXX \ - PKG_CONFIG_LIBDIR=$LIBDIR/pkgconfig \ + PKG_CONFIG_LIBDIR=$LIBDIR/pkgconfig:/usr/share/pkgconfig \ cmake \ -GNinja \ -DCMAKE_INSTALL_PREFIX=/tmp/wsroot \ |