SVN-20070706: Step 5.7 Adjusting the Toolchain

Jon Fullmer jon at jonfullmer.com
Tue Jul 10 22:15:29 MDT 2007


Gentlemen,

Forgive a novice to this list. I couldn't find any mention of this,  
so if it's already been talked about, I'm sorry.

Step 5.7 of the recent development book shows this step currently to  
generate the specs file:

gcc -dumpspecs | sed 's@^/lib/ld-linux.so.2@/tools&@g' \
   > `dirname $(gcc -print-libgcc-file-name)`/specs

When putting this system for a non-x86 (PowerPC, to be specific), I  
noticed that this setup is actually wrong.  I discovered this when  
the compile test of the dummy.c code showed the interpreter as still  
being /lib/ld... (as opposed to /tools/lib/ld...). In looking at the  
generated stream, I noticed that the "/lib/ld..." mentionings do not  
occur at the beginning of the line, as the sed statement requires. I  
would think that you would need to remove the ^, like this:

gcc -dumpspecs | sed 's@/lib/ld-linux.so.2@/tools&@g' \
   > `dirname $(gcc -print-libgcc-file-name)`/specs

That's what I did, anyway, and it worked great.

This is my first shot at participating in the Development version, so  
if I'm full of it, or I've totally missed something obvious, feel  
free to point it out to me.  I love LFS, and would love to see it  
continue in its greatness.  Thanks.

  - Jon
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://linuxfromscratch.org/pipermail/lfs-dev/attachments/20070710/b67590c5/attachment.html 


More information about the lfs-dev mailing list