Jim Gifford lfs at jg555.com
Tue Jun 7 08:34:25 PDT 2005

shikha sharma wrote:

>   I was at chapter 5 of lfs version 6.0 adjusting the
>toolchain (link given here)
>I was trying to amend the gcc spec file but was unable
>to do so.i triend to run the following commands given
>in that chapter-:
>echo 'main(){}' > dummy.c
>cc dummy.c
>readelf -l a.out | grep ': /tools'
>  but did not get any output.The path was correct and
>even changing cc to gcc did not work.This led me to
>the conclusion that the spec file has not been amended
>properly.Can you please tell me how to  amend the spec
>file or where to write these instructions
>SPECFILE=`gcc --print-file specs` &&
>sed 's@ /lib/ld-linux.so.2@
>/tools/lib/ld-linux.so.2 at g' \
>    $SPECFILE > tempspecfile &&
>mv -f tempspecfile $SPECFILE &&
>Thanking you
>Do You Yahoo!?
>Tired of spam?  Yahoo! Mail has the best spam protection around 
You made a very simple mistake.

readelf -l a.out | grep ': /tools'
should be
readelf -l a.out | grep ':/tools'

jim at linuxfromscratch.org
lfs at jg555.com

LFS User # 2577
Registered Linux User # 299986

More information about the lfs-support mailing list