2.5. Libstdc++ from GCC-15.2.0

Libstdc++ is the standard C++ library needed to compile C++ code.

Package Information

Libstdcpp Dependencies

Required

Binutils-2.46.0-pass1, GCC-15.2.0-pass1, Linux-7.0.3-headers, and Glibc-2.43-pass1

2.5.1. Installation of Libstdcpp

Prepare Libstdcpp for compilation:

Now Configure the Package, issue:

mkdir -v build
cd build
../libstdc++-v3/configure --host=$LFS_TGT \
      --build=$(../config.guess) \
      --prefix=/usr \
      --disable-nls \
      --disable-multilib \
      --disable-libstdcxx-pch \
      --with-gxx-include-dir=/tools/$LFS_TGT/include/c++/15.2.0

To Compile the Package, issue:

make

Now Install the Package, issue:

make DESTDIR=$LFS install

rm -v $LFS/usr/lib/lib{stdc++{,exp,fs},supc++}.la

2.5.2. Contents of Libstdcpp

Installed programs: PROGRAMS
Installed libraries: LIBRARIES
Installed directories: DIRECTORIES