mirror of
https://github.com/devkitPro/buildscripts.git
synced 2026-03-22 01:54:32 -05:00
hack to fix -flto
This commit is contained in:
parent
203526b13e
commit
d1aae7be89
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user