diff --git a/build.sh b/build.sh index 7f4edac..fa0a3c7 100755 --- a/build.sh +++ b/build.sh @@ -175,7 +175,29 @@ bootstap_glibc() { 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 #bootstap_gcc #bootstap_linux -bootstap_glibc \ No newline at end of file +#bootstap_glibc +bootstap_libstdcpp \ No newline at end of file