debian/rules: Ensure ld-gold is used. CMake invokes the linker through

g++ most of the time, therefore we need to set -Wl,-fuse-ld=gold.
This commit is contained in:
Sylvestre Ledru 2016-06-11 14:54:50 +00:00
parent 63a718e523
commit 6b0ab895c1
2 changed files with 9 additions and 0 deletions

8
debian/changelog vendored
View File

@ -1,3 +1,11 @@
llvm-toolchain-3.8 (1:3.8.1~+rc1-1~exp2) UNRELEASED; urgency=medium
[ Kai Wasserbäch ]
* debian/rules: Ensure ld-gold is used. CMake invokes the linker through
g++ most of the time, therefore we need to set -Wl,-fuse-ld=gold.
-- Sylvestre Ledru <sylvestre@debian.org> Sat, 11 Jun 2016 16:53:04 +0200
llvm-toolchain-3.8 (1:3.8.1~+rc1-1~exp1) experimental; urgency=medium
* New RC release

1
debian/rules vendored
View File

@ -73,6 +73,7 @@ ifeq ($(shell dpkg --compare-versions $(shell dpkg-query -W -f '$${Version}' bin
ifneq (,$(findstring $(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
endif
endif