On Mon, 4 Oct 2021 at 22:03, Bill Cunningham via Gcc-help <gcc-help@xxxxxxxxxxx> wrote: > > I have bee looking at the LFS project. www.linuxfromscratch.org and I > find their instructions a bit difficult. But at one point there is a gcc > compiler compiled and installed with the --disable-libstdcxx option. > Later, you are supposed to go back to your build directory and install > libstdc++. I am not asking anyone to go to linuxfromscratch and > investigate it so I will explain as much as possible as I believe I need > too. > > This is compiling a "fake"cross compiler. Since everything is > compiled from scratch, C++ libraries do not exist at the time of the > first compilation. After glibc is built and installed, you go back to > gcc and compile the libstdcxx libraries of gcc. Exactly how is that > done? Exactly as it says at https://www.linuxfromscratch.org/lfs/view/development/chapter05/gcc-libstdc++-pass1.html