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 '[EMAIL PROTECTED]/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
-- 
http://linuxfromscratch.org/mailman/listinfo/lfs-dev
FAQ: http://www.linuxfromscratch.org/faq/
Unsubscribe: See the above information page

Reply via email to