[OE-core] binutils fails to set ld.gold as default

Richard Purdie richard.purdie at linuxfoundation.org
Fri Sep 21 13:58:57 UTC 2012


On Fri, 2012-09-21 at 16:32 +0300, Florin Sarbu wrote:
> Hi all,
> I am facing an issue trying to use ld.gold as the default ld on a poky 
> build. I've added to my build's conf/local.conf DISTRO_FEATURES_append = 
> "ld-is-gold" so I get in 
> tmp-eglibc-eglibc/sysroots/i686-linux/usr/bin/armv7a-vfp-neon-oe-linux-gnueabi 
> the following (amongst others):
> 
> arm-oe-linux-gnueabi-ld
> arm-oe-linux-gnueabi-ld.bfd
> arm-oe-linux-gnueabi-ld.gold
> 
> All good so far. But looking into 
> tmp-eglibc-eglibc/sysroots/i686-linux/usr/libexec/armv7a-vfp-neon-oe-linux-gnueabi/gcc/arm-oe-linux-gnueabi/4.7.2 
> I see:
> 
> ld -> 
> ../../../../../bin/armv7a-vfp-neon-oe-linux-gnueabi/arm-oe-linux-gnueabi-ld
> 
>  From the binutils.inc recipe, in EXTRA_OECONF: 
> ${@base_contains('DISTRO_FEATURES', 'ld-is-gold', '--enable-gold=default 
> --enable-threads', '', d)}
> Shouldn't that have made ld point to ld.gold?
> 
> Any thoughts/ideas on why this is happening?

Its probably not enabled. Try:

DISTRO_FEATURES_append = " ld-is-gold"

note the extra space.

Cheers,

Richard





More information about the Openembedded-core mailing list