Quote:
Originally Posted by David2010
I still don't quite understand the point of chapter 5.
|
The way you kidna create the system is as follows:
Use a forgeign (one from your live cd) compiler to dump a fresh binary on your hdd of the compiler and libraries and basic tools.
Use these basic tools to compile a few more basic tools and a new compiler all set up to use fresh libraries. This is chapter 5. So all you have done is make a nice, clean compiler and a few tools, all of which use nice clean libraries, fairly specific to your hardware set up. Everything here is pretty self contained to $LFS/tools, so all binaries are expecting libriaries to be some sub directory of $LFS/tools.
You then, use that lot, to reinstall everything with the correct paths (ie /bin, /etc, /lib) rather than links hardwired inside the binaries in Chapter 5. What you are left with is a clean copy of everything, your compiler has been made just for you on your own hardware using a compiler that has been made for your hardware.