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