[lfs-dev] /tools/$(uname -m)-pc-linux-gnu/bin/ld

Bruce Dubbs bruce.dubbs at gmail.com
Fri Feb 5 10:21:07 PST 2016


Ken Moffat wrote:
> On Thu, Feb 04, 2016 at 11:14:27PM -0600, Bruce Dubbs wrote:
>> Ken Moffat wrote:
>>> I'm just looking at revision 11000.  As part of that, in Adjusting
>>> the Toolchain in chapter 6 there is the following diff :
>>>
>>> Index: trunk/BOOK/chapter06/adjusting.xml
>>> ===================================================================
>>> --- a/trunk/BOOK/chapter06/adjusting.xml
>>> +++ b/trunk/BOOK/chapter06/adjusting.xml
>>> @@ -17,11 +17,11 @@
>>>     <para>First, backup the <filename
>>> class="directory">/tools</filename> linker,
>>>     and replace it with the adjusted linker we made in chapter 5.
>>> We'll also create
>>> -  a link to its counterpart in <filename
>>>     class="directory">/tools/$(gcc
>>> -  -dumpmachine)/bin</filename>:</para>
>>> +  a link to its counterpart in
>>> +  <filename class="directory">/tools/$(uname
>>> -m)-pc-linux-gnu/bin</filename>:</para>
>>>
>>>   <screen><userinput>mv -v /tools/bin/{ld,ld-old}
>>> -mv -v /tools/$(gcc -dumpmachine)/bin/{ld,ld-old}
>>> +mv -v /tools/$(uname -m)-pc-linux-gnu/bin/{ld,ld-old}
>>>   mv -v /tools/bin/{ld-new,ld}
>>> -ln -sv /tools/bin/ld /tools/$(gcc
>>> -dumpmachine)/bin/ld</userinput></screen>
>>> +ln -sv /tools/bin/ld /tools/$(uname
>>> -m)-pc-linux-gnu/bin/ld</userinput></screen>
>>>
>>>     <para>Next, amend the GCC specs file so that it points to the new
>>>
>>> I think this was only tested on 32-bit ?  My last x86_64 build in
>>> November continued to use /tools/x86_64-unknown-linux-gnu/bin/.
>>
>> binutils-2.26 now uses x86_64-pc-linux-gnu.  It is a change in the latest
>> release.

> OK, in that case for changing it - but what a horrible upstream
> change!

Curious why you think s/unknown/pc/ is horrible.

I suspect the next version of gcc will make the change for -dumpmachine also.

   -- Bruce





More information about the lfs-dev mailing list