diff --git a/debian/rules b/debian/rules index 29943d08..eda1ba76 100755 --- a/debian/rules +++ b/debian/rules @@ -65,10 +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))) # enable the code coverage