added libstdcpp bootstrap build

This commit is contained in:
ag-tsotetsi
2026-02-20 10:06:34 +02:00
parent 218750e035
commit 592a35fc43

View File

@@ -175,7 +175,29 @@ bootstap_glibc() {
cd "$SOURCES" && rm -rf gcc-$GLIBC_VERSION cd "$SOURCES" && rm -rf gcc-$GLIBC_VERSION
} }
bootstap_libstdcpp() {
cd "$SOURCES" && tar xf gcc-$GCC_VERSION.tar.xz && cd gcc-$GCC_VERSION
mkdir -p build && cd build
../libstdc++-v3/configure \
--host=$TARGET \
--build=$(../config.guess) \
--prefix=/usr \
--disable-multilib \
--disable-nls \
--disable-libstdcxx-pch \
--with-gxx-include-dir=/cross/$TARGET/include/c++/$GCC_VERSION
make && make DESTDIR="$SYSROOT" install
rm -rf "$SYSROOT"/usr/lib/lib{stdc++{,exp,fs},supc++}.la
cd "$SOURCES" && rm -rf gcc-$GCC_VERSION
}
#bootstrap_binutils #bootstrap_binutils
#bootstap_gcc #bootstap_gcc
#bootstap_linux #bootstap_linux
bootstap_glibc #bootstap_glibc
bootstap_libstdcpp