-fused-ld=gold enables the gold linker (but is not supported by all archs / distro)

This commit is contained in:
Sylvestre Ledru 2013-08-05 09:28:57 +00:00
parent f311d41075
commit ebe2c90f5d

5
debian/rules vendored
View File

@ -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