From 207a9013670560d62c793a66f01e19f4760a71a8 Mon Sep 17 00:00:00 2001 From: Phil Blundell Date: Mon, 27 Jun 2011 16:51:16 +0100 Subject: binutils: allow distro to select gold as default linker But ensure that gcc-cross-intermediate always uses ld.bfd since (e)glibc won't build with gold. Signed-off-by: Phil Blundell --- meta/recipes-devtools/binutils/binutils-cross.inc | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'meta/recipes-devtools/binutils/binutils-cross.inc') diff --git a/meta/recipes-devtools/binutils/binutils-cross.inc b/meta/recipes-devtools/binutils/binutils-cross.inc index 4b909720de..5a41970ce2 100644 --- a/meta/recipes-devtools/binutils/binutils-cross.inc +++ b/meta/recipes-devtools/binutils/binutils-cross.inc @@ -5,7 +5,8 @@ EXTRA_OECONF = "--with-sysroot=${STAGING_DIR_TARGET} \ --program-prefix=${TARGET_PREFIX} \ --disable-install-libbfd \ --disable-werror \ - --enable-poison-system-directories" + --enable-poison-system-directories \ + ${@base_contains('DISTRO_FEATURES', 'ld-is-gold', '--enable-gold=default', '', d)}" do_install () { oe_runmake 'DESTDIR=${D}' install -- cgit v1.2.3