summaryrefslogtreecommitdiff
path: root/meta/recipes-devtools/gcc
diff options
context:
space:
mode:
authorKhem Raj <raj.khem@gmail.com>2012-07-05 14:29:55 -0700
committerRichard Purdie <richard.purdie@linuxfoundation.org>2012-07-17 10:48:16 +0100
commitf643f886b16f586426c744afde080a99d71a9d58 (patch)
tree7c8543213cd0e2de71b93d4e23d87564bac17436 /meta/recipes-devtools/gcc
parentecb18e2b6a8fc16b323f93c62ed5ff5b080c5dd0 (diff)
downloadopenembedded-core-f643f886b16f586426c744afde080a99d71a9d58.tar.gz
openembedded-core-f643f886b16f586426c744afde080a99d71a9d58.tar.bz2
openembedded-core-f643f886b16f586426c744afde080a99d71a9d58.zip
gcc-cross-initial.inc: Use BFD ld as default always
When using gold as default linker in final toolchain gcc-cross-initial still needs to use BFD ld since it will link eglibc-initial Signed-off-by: Khem Raj <raj.khem@gmail.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta/recipes-devtools/gcc')
-rw-r--r--meta/recipes-devtools/gcc/gcc-cross-initial.inc1
1 files changed, 1 insertions, 0 deletions
diff --git a/meta/recipes-devtools/gcc/gcc-cross-initial.inc b/meta/recipes-devtools/gcc/gcc-cross-initial.inc
index 0523698030..93a6d78e2e 100644
--- a/meta/recipes-devtools/gcc/gcc-cross-initial.inc
+++ b/meta/recipes-devtools/gcc/gcc-cross-initial.inc
@@ -21,6 +21,7 @@ EXTRA_OECONF = "--with-newlib \
--with-sysroot=${STAGING_DIR_TARGET} \
--with-build-sysroot=${STAGING_DIR_TARGET} \
${EXTRA_OECONF_INITIAL} \
+ ${@base_contains('DISTRO_FEATURES', 'ld-is-gold', '--with-ld=${STAGING_BINDIR_TOOLCHAIN}/${TARGET_PREFIX}ld.bfd', '', d)} \
${EXTRA_OECONF_FPU}"
do_compile () {