I wonder why gcc is built twice while "Constructing Cross-Compile
Tools".

Why cannot we build final gcc just once before glibc?

Building gcc twice in LFS (not Cross LFS) is proved to be necessary
because the "second" gcc is linked against the newly installed glibc
while the "first" one uses the host glibc. But in CLFS (as I
understand) both gcc are linked against the host glibc.

The only guess I have is that it's done in that way for the final gcc
not to be built with the host compiler. But if that's true we also
should compile binutils twice as well since the binutils are built with
the _host_ compiler in "Constructing Cross-Compile Tools".

-- 
Nothing but perfection
pv
_______________________________________________
Clfs-dev mailing list
[email protected]
http://lists.cross-lfs.org/cgi-bin/mailman/listinfo/clfs-dev

Reply via email to