use of LFS_TGT in relesed lfs 6.4 book

Mike Vanderlaan splat at
Sun Jan 18 12:40:41 PST 2009

At the end of gcc compile pass1, the book states to link libgcc_eh.a by
linking to libgcc.a for pass1 with the command:


ln -vs libgcc.a `$LFS_TGT-gcc -print-libgcc-file-name | \

sed 's/libgcc/&_eh/'`

but section 4.4 on setting up the environment doesn't define the LFS_TGT
environment variable so you get the error:

 -gcc: command not found

Should the - before the gcc at least be taken out?  Or maybe for the relesed
6.4 boot don't have the $LFS_TGT- at all?  I noticed it is defined in the
dev version of the book.

Am I missing something?

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <>

More information about the lfs-support mailing list