hack to fix -flto

This commit is contained in:
Dave Murphy 2011-07-03 20:41:43 +00:00
parent 203526b13e
commit d1aae7be89

View File

@ -14,9 +14,12 @@ case $PLATFORM in
;;
MINGW32* )
cflags="-D__USE_MINGW_ACCESS"
# horrid hack to get -flto to work on windows
plugin_ld="--with-plugin-ld=ld"
;;
esac
#---------------------------------------------------------------------------------
# build and install binutils
#---------------------------------------------------------------------------------
@ -72,7 +75,7 @@ then
--target=$target \
--with-newlib \
--prefix=$prefix\
--enable-lto \
--enable-lto $plugin_ld\
--with-bugurl="http://wiki.devkitpro.org/index.php/Bug_Reports" --with-pkgversion="devkitARM release 34" \
|| { echo "Error configuring gcc"; exit 1; }
touch configured-gcc