On Fri, Feb 21, 2020 at 9:54 PM Pierre Labastie via lfs-dev
<lfs-dev@lists.linuxfromscratch.org> wrote:
>
> Le 21/02/2020 à 18:29, Tadeus Prastowo via lfs-dev a écrit :
> > Hello,
> >
> > To quote 
> > http://www.linuxfromscratch.org/lfs/view/development/chapter05/gcc-libstdc++.html:
> >
> > --disable-libstdcxx-threads
> >
> > Since we have not yet built the C threads library, the C++ one cannot
> > be built either.
> >
> > End quote.
> >
> > The option can indeed be removed and gcc-libstdc++ will build fine.
> > Furthermore, considering the option `-lrt' given when building the
> > perl executable as described in the other thread
> > http://lists.linuxfromscratch.org/pipermail/lfs-dev/2020-February/073506.html,
> > it seems that the glibc built at
> > http://www.linuxfromscratch.org/lfs/view/development/chapter05/glibc.html
> > indeed has a thread support, which is against the quoted description.
> >
> > I think the real reason could be the fact that the libstdcxx-threads
> > is simply not needed to build the rest.  What do you think?
> >
>
> Actually, glibc has all the bells and whistles it would have in a native
> build. The problem at this stage is libgcc.a, which comes with gcc, not with
> glibc... And this one has no support for threads.

For sure, libgcc.a (not glibc) is a better explanation.

> OTOH, I've not tried without this option for a while, maybe now it is not
> needed anymore.

No, it is not needed anymore.  But, were it needed before?  Any
recollection to which GCC version needed it?  Thanks.

> Pierre

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

Reply via email to