From 949e6398c89e3c277a4c542f67a5ee788c6f642d Mon Sep 17 00:00:00 2001 From: Thomas Jarosch Date: Tue, 3 Jan 2012 22:33:47 +0000 Subject: 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 --- tools/configure | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) (limited to 'tools') diff --git a/tools/configure b/tools/configure index 88c3738203..2e2cf2cdb0 100755 --- a/tools/configure +++ b/tools/configure @@ -217,7 +217,12 @@ simcc () { app_type=$1 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" GCCOPTIMIZE='' LDOPTS='-lm' # button-sdl.c uses sqrt() -- cgit v1.2.3