On 9/12/06, Brandon Peirce <[EMAIL PROTECTED]> wrote:
Dan Nicholson wrote:
>The advice at the end of Ch. 6 is bogus.

Would you care to elaborate?  Thx

A long standing hammering of /tools done in the toolchain readjustment.

When you finish Ch. 5, /tools is well fleshed out and the toolchain is
properly set to compile programs that link into /tools/lib, etc.

Then you get to the Ch. 6 readjustment and you change the default ld
(in /tools) and add a specs file (in /tools) so that compiled programs
will link to /lib, etc. in the chroot. This achieves the proper effect
as you don't want your final gcc and binutils linking against the
temporary system.

However, when you get to the end of Ch. 6, it says you can tar up
/tools and use it again. Wrong. Now your toolchain in /tools points to
/lib and friends. If you move the old ld back in /tools/bin and remove
the specs file, all is well. Then you really can unpack /tools and
start firing away in Ch. 6 on a blank disk.

The way it is now, a tarred up /tools provides nice temporary tools if
something is messed up, but it doesn't give you a clean starting point
if you were trying to build a pure final system.

The changes in /tools to adjust the toolchain are not really
necessary. There are other methods where the changes could be made
without affecting anything in /tools (beware of flame wars, though :).
See how DIY does the readjustment and subsequent gcc and binutils
builds:

http://www.diy-linux.org/x86-reference-build/chroot.html#c-readjust-toolchain

--
Dan
--
http://linuxfromscratch.org/mailman/listinfo/lfs-support
FAQ: http://www.linuxfromscratch.org/lfs/faq.html
Unsubscribe: See the above information page

Reply via email to