added libstdcpp bootstrap build
This commit is contained in:
24
build.sh
24
build.sh
@@ -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
|
||||||
Reference in New Issue
Block a user