Openembedded Core Discussions
 help / color / mirror / Atom feed
From: Richard Purdie <richard.purdie@linuxfoundation.org>
To: Florin Sarbu <florin.sarbu@windriver.com>
Cc: Patches and discussions about the oe-core layer
	<openembedded-core@lists.openembedded.org>
Subject: Re: binutils fails to set ld.gold as default
Date: Fri, 21 Sep 2012 14:58:57 +0100	[thread overview]
Message-ID: <1348235937.10108.78.camel@ted> (raw)
In-Reply-To: <505C6C8A.9000800@windriver.com>

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




  reply	other threads:[~2012-09-21 14:11 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2012-09-21 13:32 binutils fails to set ld.gold as default Florin Sarbu
2012-09-21 13:58 ` Richard Purdie [this message]
2012-09-21 19:47   ` Florin Sarbu
2012-09-21 21:53     ` Khem Raj
2012-09-22  6:53       ` Florin Sarbu
2012-09-23  3:41         ` Khem Raj
2012-09-23  7:51           ` Florin Sarbu

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=1348235937.10108.78.camel@ted \
    --to=richard.purdie@linuxfoundation.org \
    --cc=florin.sarbu@windriver.com \
    --cc=openembedded-core@lists.openembedded.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox