Use filter into of findstring in the gold usage. Thanks Doko for the

suggestion
This commit is contained in:
Sylvestre Ledru 2016-08-07 13:22:46 +00:00
parent f0a8b88cce
commit 70a4bd3129
2 changed files with 3 additions and 1 deletions

2
debian/changelog vendored
View File

@ -5,6 +5,8 @@ llvm-toolchain-3.8 (1:3.8.1-8) unstable; urgency=medium
testsuite
* Disable lldb on ppc64
* libfuzzer depends on the same version of clang (Closes: #833564)
* Use filter into of findstring in the gold usage. Thanks Doko for the
suggestion
-- Sylvestre Ledru <sylvestre@debian.org> Sun, 07 Aug 2016 14:10:09 +0200

2
debian/rules vendored
View File

@ -69,7 +69,7 @@ endif
BINUTILS_GOLD_ARCHS := amd64 armhf i386 powerpcspe ppc64 ppc64el sparc sparc64 x32
ifeq ($(shell dpkg --compare-versions $(shell dpkg-query -W -f '$${Version}' binutils) ge 2.23.1-1~exp3 ; echo $$?),0)
ifneq (,$(findstring $(DEB_HOST_ARCH),$(BINUTILS_GOLD_ARCHS)))
ifneq (,$(filter $(DEB_HOST_ARCH),$(BINUTILS_GOLD_ARCHS)))
# -fused-ld=gold enables the gold linker (but is not supported by all archs / distro)
LDFLAGS_EXTRA += -fuse-ld=gold
CXXFLAGS_EXTRA += -Wl,-fuse-ld=gold