Only use -fuse-ld=gold on supported distribution. Simplify the

backports.
This commit is contained in:
Sylvestre Ledru 2013-08-26 12:49:53 +00:00
parent 61e7dcc1d6
commit 0094db28a9
2 changed files with 10 additions and 1 deletions

7
debian/changelog vendored
View File

@ -1,9 +1,14 @@
llvm-toolchain-3.3 (1:3.3-9) UNRELEASED; urgency=low
[ Luca Falavigna ]
* debian/control:
- Add llvm-3.3-dev to lldb-3.3 Depends field (Closes: #715129).
-- Luca Falavigna <dktrkranz@debian.org> Sun, 25 Aug 2013 13:51:40 +0200
[ Sylvestre Ledru ]
* Only use -fuse-ld=gold on supported distribution. Simplify the
backports.
-- Sylvestre Ledru <sylvestre@debian.org> Mon, 26 Aug 2013 14:48:42 +0200
llvm-toolchain-3.3 (1:3.3-8) unstable; urgency=low

4
debian/rules vendored
View File

@ -65,9 +65,13 @@ else
endif
BINUTILS_GOLD_ARCHS := amd64 armhf i386 powerpc powerpcspe ppc64 sparc sparc64 x32
BINUTILS_GOLD_UNSUPPORTED_DISTRO = wheezy quantal
ifneq (,$(findstring $(DEB_HOST_ARCH),$(BINUTILS_GOLD_ARCHS)))
ifeq (,$(findstring $(distrel),$(BINUTILS_GOLD_UNSUPPORTED_DISTRO)))
# -fused-ld=gold enables the gold linker (but is not supported by all archs / distro)
LDFLAGS_EXTRA += -fuse-ld=gold
endif
endif
ifneq (,$(filter codecoverage,$(DEB_BUILD_OPTIONS)))