summaryrefslogtreecommitdiffstats
path: root/meta/recipes-devtools/binutils/binutils-cross.inc
diff options
context:
space:
mode:
authorPhil Blundell <pb@pbcl.net>2011-06-27 16:51:16 +0100
committerRichard Purdie <richard.purdie@linuxfoundation.org>2011-06-30 22:42:04 +0100
commitb78173f176eeff553e2e941bd06ff032daebc7be (patch)
treed5d5d1473a242f9a5d4828351ce42967fe5da466 /meta/recipes-devtools/binutils/binutils-cross.inc
parent5e480e526fa61515b80a05ebe0ea163b9d8f01bb (diff)
downloadpoky-b78173f176eeff553e2e941bd06ff032daebc7be.tar.gz
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. (From OE-Core rev: 207a9013670560d62c793a66f01e19f4760a71a8) Signed-off-by: Phil Blundell <philb@gnu.org> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta/recipes-devtools/binutils/binutils-cross.inc')
-rw-r--r--meta/recipes-devtools/binutils/binutils-cross.inc3
1 files changed, 2 insertions, 1 deletions
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} \
5 --program-prefix=${TARGET_PREFIX} \ 5 --program-prefix=${TARGET_PREFIX} \
6 --disable-install-libbfd \ 6 --disable-install-libbfd \
7 --disable-werror \ 7 --disable-werror \
8 --enable-poison-system-directories" 8 --enable-poison-system-directories \
9 ${@base_contains('DISTRO_FEATURES', 'ld-is-gold', '--enable-gold=default', '', d)}"
9 10
10do_install () { 11do_install () {
11 oe_runmake 'DESTDIR=${D}' install 12 oe_runmake 'DESTDIR=${D}' install