mirror of
https://github.com/autc04/Retro68.git
synced 2025-01-11 18:30:58 +00:00
try to reduce libstdc++ size by passing some configure options
This commit is contained in:
parent
882ff68a18
commit
6a76b6e593
@ -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
|
||||
|
Loading…
x
Reference in New Issue
Block a user