back to using --with-headers

This commit is contained in:
Dave Murphy 2012-04-26 13:26:50 +01:00
parent 5292765668
commit b9ea67e435
2 changed files with 25 additions and 63 deletions

View File

@ -40,8 +40,9 @@ cd $target/gcc-stage1
if [ ! -f configured-gcc ] if [ ! -f configured-gcc ]
then then
CFLAGS="$cflags" LDFLAGS="$ldflags" CFLAGS_FOR_TARGET="-O2" LDFLAGS_FOR_TARGET="" ../../gcc-$GCC_VER/configure \ CFLAGS="$cflags" LDFLAGS="$ldflags" CFLAGS_FOR_TARGET="-O2" LDFLAGS_FOR_TARGET="" ../../gcc-$GCC_VER/configure \
--enable-languages=c \ --enable-languages=c,c++,objc,obj-c++ \
--with-march=armv4t\ --with-march=armv4t\
--enable-poison-system-directories \
--enable-interwork --enable-multilib \ --enable-interwork --enable-multilib \
--disable-dependency-tracking \ --disable-dependency-tracking \
--disable-threads --disable-win32-registry --disable-nls --disable-debug\ --disable-threads --disable-win32-registry --disable-nls --disable-debug\
@ -49,9 +50,10 @@ then
--disable-libstdcxx-pch \ --disable-libstdcxx-pch \
--target=$target \ --target=$target \
--with-newlib \ --with-newlib \
--without-headers \ --with-headers=../../newlib-$NEWLIB_VER/newlib/libc/include \
--prefix=$prefix \ --prefix=$prefix \
--enable-lto $plugin_ld\ --enable-lto $plugin_ld\
--with-bugurl="http://wiki.devkitpro.org/index.php/Bug_Reports" --with-pkgversion="devkitARM release 39" \
$CROSS_PARAMS \ $CROSS_PARAMS \
|| { echo "Error configuring gcc"; exit 1; } || { echo "Error configuring gcc"; exit 1; }
touch configured-gcc touch configured-gcc
@ -109,42 +111,23 @@ fi
#--------------------------------------------------------------------------------- #---------------------------------------------------------------------------------
cd $BUILDDIR cd $BUILDDIR
mkdir -p $target/gcc-stage2
cd $target/gcc-stage2
if [ ! -f configured-gcc ] cd $target/gcc
if [ ! -f built-stage2 ]
then then
CFLAGS="$cflags" LDFLAGS="$ldflags" CFLAGS_FOR_TARGET="-O2" LDFLAGS_FOR_TARGET="" ../../gcc-$GCC_VER/configure \ $MAKE all || { echo "Error building gcc stage2"; exit 1; }
--enable-languages=c,c++,objc \ touch built-stage2
--with-march=armv4t \
--enable-interwork --enable-multilib \
--enable-poison-system-directories \
--disable-dependency-tracking \
--disable-threads --disable-win32-registry --disable-nls --disable-debug\
--disable-libmudflap --disable-libssp --disable-libgomp \
--disable-libstdcxx-pch \
--target=$target \
--with-newlib \
--prefix=$prefix \
--enable-lto $plugin_ld\
--with-bugurl="http://wiki.devkitpro.org/index.php/Bug_Reports" --with-pkgversion="devkitARM release 39" \
$CROSS_PARAMS \
|| { echo "Error configuring gcc"; exit 1; }
touch configured-gcc
fi fi
if [ ! -f built-gcc ] if [ ! -f installed-stage2 ]
then
$MAKE || { echo "Error building gcc stage2"; exit 1; }
touch built-gcc
fi
if [ ! -f installed-gcc ]
then then
$MAKE install || { echo "Error installing gcc stage2"; exit 1; } $MAKE install || { echo "Error installing gcc stage2"; exit 1; }
touch installed-gcc touch installed-stage2
fi fi
rm -fr $prefix/$target/sys-include
cd $BUILDDIR cd $BUILDDIR
#--------------------------------------------------------------------------------- #---------------------------------------------------------------------------------

View File

@ -43,17 +43,18 @@ cd $target/gcc
if [ ! -f configured-gcc ] if [ ! -f configured-gcc ]
then then
CFLAGS="$cflags" LDFLAGS="$ldflags" CFLAGS_FOR_TARGET="-O2" LDFLAGS_FOR_TARGET="" ../../gcc-$GCC_VER/configure \ CFLAGS="$cflags" LDFLAGS="$ldflags" CFLAGS_FOR_TARGET="-O2" LDFLAGS_FOR_TARGET="" ../../gcc-$GCC_VER/configure \
--enable-languages=c \ --enable-languages=c,c++,objc,obj-c++ \
--disable-multilib\ --disable-multilib\
--disable-shared --disable-win32-registry --disable-nls\ --disable-shared --disable-win32-registry --disable-nls\
--enable-cxx-flags="-G0" \ --enable-cxx-flags="-G0" \
--disable-libstdcxx-pch \ --disable-libstdcxx-pch \
--target=$target \ --target=$target \
--with-newlib \ --with-newlib \
--without-headers \ --with-headers=../../newlib-$NEWLIB_VER/newlib/libc/include \
--enable-lto $plugin_ld \ --enable-lto $plugin_ld \
--prefix=$prefix \ --prefix=$prefix \
--disable-dependency-tracking \ --disable-dependency-tracking \
--with-bugurl="http://wiki.devkitpro.org/index.php/Bug_Reports" --with-pkgversion="devkitPSP release 17" \
$CROSS_PARAMS \ $CROSS_PARAMS \
|| { echo "Error configuring gcc"; exit 1; } || { echo "Error configuring gcc"; exit 1; }
touch configured-gcc touch configured-gcc
@ -128,49 +129,27 @@ then
touch installed-newlib touch installed-newlib
fi fi
cd $BUILDDIR
#--------------------------------------------------------------------------------- #---------------------------------------------------------------------------------
# build and install the final compiler # build and install the final compiler
#--------------------------------------------------------------------------------- #---------------------------------------------------------------------------------
mkdir -p $target/gcc-stage2 cd $BUILDDIR
cd $target/gcc-stage2
cd $target/gcc
if [ ! -f configured-gcc ] if [ ! -f built-stage2 ]
then then
CFLAGS="$cflags" LDFLAGS="$ldflags" CFLAGS_FOR_TARGET="-O2" LDFLAGS_FOR_TARGET="" ../../gcc-$GCC_VER/configure \ $MAKE all || { echo "Error building gcc stage2"; exit 1; }
--enable-languages=c,c++,objc \ touch built-stage2
--disable-multilib\
--enable-poison-system-directories \
--disable-shared --disable-win32-registry --disable-nls\
--enable-cxx-flags="-G0" \
--disable-libstdcxx-pch \
--target=$target \
--with-newlib \
--enable-lto $plugin_ld \
--prefix=$prefix \
--disable-dependency-tracking \
--with-bugurl="http://wiki.devkitpro.org/index.php/Bug_Reports" --with-pkgversion="devkitPSP release 17" \
$CROSS_PARAMS \
|| { echo "Error configuring gcc"; exit 1; }
touch configured-gcc
fi fi
if [ ! -f built-gcc ] if [ ! -f installed-stage2 ]
then then
$MAKE || { echo "Error building g++"; exit 1; } $MAKE install || { echo "Error installing gcc stage2"; exit 1; }
touch built-gcc touch installed-stage2
fi
if [ ! -f installed-gcc ]
then
$MAKE install || { echo "Error installing g++"; exit 1; }
touch installed-gcc
fi fi
rm -fr $prefix/$target/sys-include
cd $BUILDDIR/pspsdk-$PSPSDK_VER cd $BUILDDIR/pspsdk-$PSPSDK_VER
#--------------------------------------------------------------------------------- #---------------------------------------------------------------------------------