mirror of
https://github.com/devkitPro/buildscripts.git
synced 2026-04-26 00:06:11 -05:00
enable lto, error if cross building (for now)
This commit is contained in:
parent
0975571570
commit
97c19adf87
|
|
@ -1,6 +1,9 @@
|
|||
#!/bin/sh
|
||||
|
||||
prefix=$INSTALLDIR/devkitPSP
|
||||
if [ ! -z $CROSSBUILD ]; then
|
||||
echo "canadian cross not yet supported"
|
||||
exit 1
|
||||
fi
|
||||
|
||||
#---------------------------------------------------------------------------------
|
||||
# build and install binutils
|
||||
|
|
@ -12,8 +15,8 @@ cd $target/binutils
|
|||
if [ ! -f configured-binutils ]
|
||||
then
|
||||
CFLAGS=$cflags LDFLAGS=$ldflags ../../binutils-$BINUTILS_VER/configure \
|
||||
--prefix=$prefix --target=$target --disable-nls --disable-shared --disable-debug \
|
||||
--disable-threads --with-gcc --with-gnu-as --with-gnu-ld --with-stabs \
|
||||
--prefix=$prefix --target=$target --disable-nls --disable-debug \
|
||||
--enable-lto --enable-plugins \
|
||||
--disable-dependency-tracking --disable-werror \
|
||||
|| { echo "Error configuring binutils"; exit 1; }
|
||||
touch configured-binutils
|
||||
|
|
@ -51,6 +54,7 @@ then
|
|||
--disable-libstdcxx-pch \
|
||||
--target=$target \
|
||||
--with-newlib \
|
||||
--enable-lto $plugin_ld \
|
||||
--with-headers=../../newlib-$NEWLIB_VER/newlib/libc/include \
|
||||
--prefix=$prefix \
|
||||
--disable-dependency-tracking \
|
||||
|
|
@ -72,6 +76,7 @@ then
|
|||
$MAKE install-gcc || { echo "Error installing gcc"; exit 1; }
|
||||
touch installed-gcc
|
||||
fi
|
||||
|
||||
unset CFLAGS
|
||||
cd $BUILDDIR/pspsdk-$PSPSDK_VER
|
||||
|
||||
|
|
@ -191,3 +196,4 @@ then
|
|||
$MAKE install || { echo "Error installing gdb"; exit 1; }
|
||||
touch installed-gdb
|
||||
fi
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user