build libstdc++ too

This commit is contained in:
2024-03-29 21:22:38 +01:00
parent 1556f5f2cb
commit 95e015c92a
3 changed files with 9 additions and 1 deletions

View File

@@ -48,8 +48,12 @@ cd gcc-x86_64-os3
rm -rf build
mkdir -p build
cd build
../gcc-13.2.0/configure --target=$TARGET --prefix="$PREFIX" --with-sysroot="$OS2_ROOT/sysroot" --disable-nls --enable-languages=c,c++ --with-newlib --enable-version-specific-runtime-libs --with-gmp=/opt/homebrew --with-mpc=/opt/homebrew --with-mpfr=/opt/homebrew
../gcc-13.2.0/configure --target=$TARGET --prefix="$PREFIX" --with-sysroot="$OS2_ROOT/sysroot" --disable-nls \
--enable-languages=c,c++ --with-newlib --disable-libstdcxx-threads \
--enable-version-specific-runtime-libs --with-gmp=/opt/homebrew --with-mpc=/opt/homebrew --with-mpfr=/opt/homebrew
make -j$(nproc) all-gcc
make -j$(nproc) all-target-libgcc
make -j$(nproc) all-target-libstdc++-v3
make install-gcc
make install-target-libgcc
make install-target-libstdc++-v3

View File

@@ -1133,6 +1133,7 @@ esac
case ${target} in
x86_64-*-os3*)
tmake_file="${tmake_file} i386/t-x86_64-os3"
tm_file="${tm_file} i386/unix.h i386/att.h elfos.h glibc-stdint.h i386/i386elf.h i386/x86-64.h os3.h"
;;
aarch64*-*-elf | aarch64*-*-fuchsia* | aarch64*-*-rtems*)

View File

@@ -0,0 +1,3 @@
# Add libgcc multilib variant without red-zone requirement
MULTILIB_OPTIONS += mno-red-zone mcmodel=large