On Monday 20 July 2009 09:54:36 booleandomain wrote:
> I don't fully understand the build method for LFS.
>
> I know the general idea is to first create a working minimal system
> inside of ${LFS}/tools, chroot into ${LFS}, then use the programs inside
> of /tools for building the final system.
>
> What I can't understand is:
>
> 1) Why editing gcc specs file instead of adding
> -Wl,--dynamic-linker,/tools/lib/ld-linux.so.2? It seems to me an
> equivalent but more elegant way of accomplishing the same thing, that is
> making sure everything you install in /tools get not linked to the
> host's dynamic linker but to the dynamic linker inside of /tools.
>
> 2) Why two passes for gcc and binutils in chapter 5? I think one pass
> should be enough, just after glibc installation.The first pass is to build a recent enough gcc for glibc only, the second pass is to build the gcc for the whole system. > 3) Why playing with ld, ld-new and ld-old? I can't get it. > If you don't make an ld-new in chapter 5, you will need to build binutils 2 times in chapter 6. (The first build is to get a linker that uses /lib for searching, but itself is still linked to /tools/lib , the second build is to get a working linker that works without /tools/lib ) > I'm aware the book explains everything, but I think I need different > words in order to understand. > > Thanks.
signature.asc
Description: This is a digitally signed message part.
-- http://linuxfromscratch.org/mailman/listinfo/lfs-support FAQ: http://www.linuxfromscratch.org/lfs/faq.html Unsubscribe: See the above information page
