Openembedded Core Discussions
 help / color / mirror / Atom feed
From: Florin Sarbu <florin.sarbu@windriver.com>
To: Richard Purdie <richard.purdie@linuxfoundation.org>
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 22:47:30 +0300	[thread overview]
Message-ID: <505CC452.9040906@windriver.com> (raw)
In-Reply-To: <1348235937.10108.78.camel@ted>

It is enabled. As I said earlier, ld.gold gets created, it's just that 
ld is not pointing to it even though the flag says 
--enable-gold=default. It still point to the regular cross ld. Another 
config option that creates ld.gold is --enable-ld=yes, so at this point 
default looks exactly like yes.
Just to be extra sure, I did try to add the extra space as you suggested 
but the behaviour is the same.

Thanks,
Florin

On 09/21/2012 04:58 PM, Richard Purdie wrote:
> 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 20:00 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
2012-09-21 19:47   ` Florin Sarbu [this message]
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=505CC452.9040906@windriver.com \
    --to=florin.sarbu@windriver.com \
    --cc=openembedded-core@lists.openembedded.org \
    --cc=richard.purdie@linuxfoundation.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