diff --git a/debian/changelog b/debian/changelog index a7996d81..9df630e1 100644 --- a/debian/changelog +++ b/debian/changelog @@ -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 Sun, 25 Aug 2013 13:51:40 +0200 + [ Sylvestre Ledru ] + * Only use -fuse-ld=gold on supported distribution. Simplify the + backports. + + -- Sylvestre Ledru Mon, 26 Aug 2013 14:48:42 +0200 llvm-toolchain-3.3 (1:3.3-8) unstable; urgency=low diff --git a/debian/rules b/debian/rules index f694201d..7f00d742 100755 --- a/debian/rules +++ b/debian/rules @@ -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)))