LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux From Scratch (http://www.linuxquestions.org/questions/linux-from-scratch-13/)
-   -   Did I re-adjust the toolchain correctly? (http://www.linuxquestions.org/questions/linux-from-scratch-13/did-i-re-adjust-the-toolchain-correctly-701796/)

startoftext 02-02-2009 10:47 PM

Did I re-adjust the toolchain correctly?
 
I am installing LFS version 6.4 and currently I am an section 6.10. I am in the chrooted environment and have just compiled and installed Glibc. Now I am trying to re-adjust the toolchain as the docs suggest. The part I am confused about is where I am supposed to adjust the gcc specs file.

The docs say to use this huge one liner.
Code:

gcc -dumpspecs | sed -e 's@/tools/lib/ld-linux.so.2@/lib/ld-linux.so.2@g' -e '/\*startfile_prefix_spec:/{n;s@.*@/usr/lib/ @}' -e '/\*cpp:/{n;s@$@ -isystem /usr/include@}' > `dirname $(gcc --print-libgcc-file-name)`/specs
So I did this and then the docs say that i should inspect the gcc specs file and manualy to make sure the changes were actually made. Well I assume that nothing in the specs file should refer to anything in /tools/. So i checked it using this:

Code:

root:/# gcc -dumpspecs | grep /tools/
 %{muclibc:%{mglibc:%e-mglibc and -muclibc used together}/tools/lib/ld-uClibc.so.0;:/tools/lib/ld-linux.so.2}
root:/#

Does this mean my specs file is not changed correctly? What should my specs file say or NOT say at this point?

Thanks.


All times are GMT -5. The time now is 07:56 AM.