On Sat, Feb 22, 2020 at 11:10 PM Pierre Labastie via lfs-dev <[email protected]> wrote: > > Le 22/02/2020 à 18:33, Tadeus Prastowo via lfs-dev a écrit : > > On Sat, Feb 22, 2020 at 6:17 PM Douglas R. Reno via lfs-dev > > <[email protected]> wrote: > >> If we're going off an 'svn blame', it was done at r10226. That would've > >> been GCC-4.8.0: > >> > >> http://wiki.linuxfromscratch.org/lfs/browser/trunk/BOOK/chapter05/libstdc%2B%2B.xml?annotate=blame > > > > Thank you very much for the pointer. I see that the change was > > committed by Pierre. > > I'm almost sure the option was needed at the time. gcc-4.8.0 was the first gcc > to be written in C++, hence the need for adding C++ support in pass1.
I think the `--disable-libstdcxx-threads' option was not needed even at that time. In other words, I am sure that the option was included in the book without a failing build to support the use of the option (perhaps the option was included just because its name includes the word `threads'). This is because for the very first stable LFS book incorporating the option (i.e., http://www.linuxfromscratch.org/lfs/view/7.4/chapter05/chapter05.html), I can configure http://www.linuxfromscratch.org/lfs/view/7.4/chapter05/gcc-libstdc++.html without the option, and http://www.linuxfromscratch.org/lfs/view/7.4/chapter05/gcc-pass2.html still builds successfully. Note that in performing the experiment to show whether the option is actually needed, I followed all of the build steps starting from http://www.linuxfromscratch.org/lfs/view/7.4/chapter05/binutils-pass1.html. If you want to reproduce my experiment, and your build system uses a newer autoconf and make (my build system has autoconf 2.69 and make 4.1), then you have to further patch the glibc-2.18 source as follows (adjust the make version accordingly): $ cd glibc-2.18 $ sed -i 's%m4_define(\[GLIBC_AUTOCONF_VERSION\], \[2.68\])%m4_define([GLIBC_AUTOCONF_VERSION], [2.69])%' aclocal.m4 $ sed -i 's%3\.79\* | 3\.\[89\]\*%& | 4.1*%' configure.in $ mydir=$(pwd); for x in $(find -type f -name 'configure.in' -exec dirname {} \;); do pushd $x; autoconf -I $mydir; popd; done; unset mydir $ cd .. -- Best regards, Tadeus -- http://lists.linuxfromscratch.org/listinfo/lfs-dev FAQ: http://www.linuxfromscratch.org/faq/ Unsubscribe: See the above information page
