On Sun, Mar 12, 2017 at 4:40 AM Pierre Labastie <[email protected]>
wrote:

> > gcc pass 2 needs libstdc++ for building (the gcc code is written in
> > C++). So libstdc++ is needed before gcc-pass2.
> > libstdc++ is not done as part of gcc-pass1 because it needs glibc, and
> > we do not want it to be linked to the host glibc.
> > This is also the reason for the --host switch. We are still
> > "cross-compiling" at this stage. libstdc++ is more part of gcc-pass1
> > than gcc-pass2
>


Yep, makes sense, and also aligns with my testing: setting the CC (etc)
vars are not enough. Definitely a note of explanation in this section would
be helpful. If I have some time later today, I may draft a suggestion.

Thanks!

JH
-- 
http://lists.linuxfromscratch.org/listinfo/lfs-dev
FAQ: http://www.linuxfromscratch.org/faq/
Unsubscribe: See the above information page

Reply via email to