diff --git a/build-toolchain.sh b/build-toolchain.sh index 9ec8079714..54c398e51b 100644 --- a/build-toolchain.sh +++ b/build-toolchain.sh @@ -68,7 +68,6 @@ mkdir -p toolchain if [ $BUILD_68K != false ]; then export "CFLAGS=-Wno-error" - # Build binutils for 68K mkdir -p binutils-build cd binutils-build @@ -80,10 +79,12 @@ cd .. # Build gcc for 68K mkdir -p gcc-build cd gcc-build +export target_configargs="--disable-nls --enable-libstdcxx-dual-abi=no" $SRC/gcc/configure --target=m68k-apple-macos --prefix=$PREFIX --enable-languages=c,c++ --with-arch=m68k --with-cpu=m68000 --disable-libssp MAKEINFO=missing # There seems to be a build failure in parallel builds; ignore any errors and try again without -j8. make -j8 || make make install +unset target_configargs cd .. unset CFLAGS @@ -103,9 +104,11 @@ cd .. # Build gcc for PPC mkdir -p gcc-build-ppc cd gcc-build-ppc +export target_configargs="--disable-nls --enable-libstdcxx-dual-abi=no" $SRC/gcc/configure --target=powerpc-apple-macos --prefix=$PREFIX --enable-languages=c,c++ --disable-libssp --disable-lto MAKEINFO=missing make -j8 make install +unset target_configargs cd .. fi