FS #11859: Enable optimizations for SDL application builds.

Only disable them for the simulator (like before).

git-svn-id: svn://svn.rockbox.org/rockbox/trunk@31547 a1c6a512-1295-4272-9138-f99709370657
This commit is contained in:
Thomas Jarosch 2012-01-03 22:33:47 +00:00
parent f36f7825d7
commit 949e6398c8

7
tools/configure vendored
View file

@ -217,7 +217,12 @@ simcc () {
app_type=$1 app_type=$1
winbuild="" winbuild=""
GCCOPTS=`echo $CCOPTS | sed -e s/-ffreestanding// -e s/-nostdlib// -e s/-Wundef// -e s/-O//` GCCOPTS=`echo $CCOPTS | sed -e s/-ffreestanding// -e s/-nostdlib// -e s/-Wundef//`
if [ "$app_type" != "sdl-app" ]; then
# Disable optimizations for non-app builds
GCCOPTS=`echo $GCCOPTS | sed -e s/-O//`
fi
GCCOPTS="$GCCOPTS -fno-builtin -g" GCCOPTS="$GCCOPTS -fno-builtin -g"
GCCOPTIMIZE='' GCCOPTIMIZE=''
LDOPTS='-lm' # button-sdl.c uses sqrt() LDOPTS='-lm' # button-sdl.c uses sqrt()