From ebe2c90f5dfbca4e233c04032e57aec71d78f4d3 Mon Sep 17 00:00:00 2001 From: Sylvestre Ledru Date: Mon, 5 Aug 2013 09:28:57 +0000 Subject: [PATCH] -fused-ld=gold enables the gold linker (but is not supported by all archs / distro) --- debian/rules | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) 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