Originally posted by jbhoo
I,m compiling and installing in chapter 5 and I just wan't to know if im doing this right. If I understand the book fairly correctly I unpack the program in my mnt/lfs/usr/src directory and compile & install from there and then go back and delete the source files & rinse & repeat with the next program?
Does the static linking make some files elsewhere that when you do the real install it reads? the static linking is a little confusing I'm going do some more reading on it. I just don't wan't to go through this whole thing and find out I deleted the wrong files or something. I say the whole thing I mean just chapter 5 because it might take me awhile
Yes remove the directories from $LFS/usr/src that were created when you unpacked a package such as bash-2.05a.tar.bz2
Static linking creates programs that can run without Glibc present. When we chroot into $LFS at the beginning of chapter 6 we don't have Glibc installed yet, but we need some programs to be able to install Glibc. Static linking makes them independant of a Glibc installation. Throughout chapter 6 you will re-install the packages from chapter 5 so they will be dynamically linked against the Glibc version on your LFS system.
I hope it's clear?