From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mail1.windriver.com ([147.11.146.13]) by linuxtogo.org with esmtp (Exim 4.72) (envelope-from ) id 1TF9Oj-0001j1-Nj for openembedded-core@lists.openembedded.org; Fri, 21 Sep 2012 22:00:26 +0200 Received: from ALA-HCA.corp.ad.wrs.com (ala-hca.corp.ad.wrs.com [147.11.189.40]) by mail1.windriver.com (8.14.5/8.14.3) with ESMTP id q8LJlW7M028399 (version=TLSv1/SSLv3 cipher=AES128-SHA bits=128 verify=FAIL); Fri, 21 Sep 2012 12:47:32 -0700 (PDT) Received: from [128.224.18.106] (128.224.18.106) by ALA-HCA.corp.ad.wrs.com (147.11.189.50) with Microsoft SMTP Server id 14.2.309.2; Fri, 21 Sep 2012 12:47:31 -0700 Message-ID: <505CC452.9040906@windriver.com> Date: Fri, 21 Sep 2012 22:47:30 +0300 From: Florin Sarbu User-Agent: Mozilla/5.0 (X11; Linux i686; rv:15.0) Gecko/20120827 Thunderbird/15.0 MIME-Version: 1.0 To: Richard Purdie References: <505C6C8A.9000800@windriver.com> <1348235937.10108.78.camel@ted> In-Reply-To: <1348235937.10108.78.camel@ted> Cc: Patches and discussions about the oe-core layer Subject: Re: binutils fails to set ld.gold as default X-BeenThere: openembedded-core@lists.openembedded.org X-Mailman-Version: 2.1.11 Precedence: list List-Id: Patches and discussions about the oe-core layer List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 21 Sep 2012 20:00:26 -0000 Content-Type: text/plain; charset="UTF-8"; format=flowed Content-Transfer-Encoding: 7bit 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 >