summaryrefslogtreecommitdiffstats
path: root/tools
diff options
context:
space:
mode:
authorRafaël Carré <rafael.carre@gmail.com>2010-09-07 14:21:13 +0000
committerRafaël Carré <rafael.carre@gmail.com>2010-09-07 14:21:13 +0000
commitc168d2317ff3d163ba1181c5c823e521cc7164ec (patch)
tree499d965d6e807b1937efba547b36aa890d3f7c53 /tools
parentbd737477bf77c426cd79ca08f94f4ac16c35d615 (diff)
downloadrockbox-c168d2317ff3d163ba1181c5c823e521cc7164ec.tar.gz
rockbox-c168d2317ff3d163ba1181c5c823e521cc7164ec.tar.bz2
rockbox-c168d2317ff3d163ba1181c5c823e521cc7164ec.zip
FS#11611: Use -std=gnu99 to allow additional C99 features
example: for(int i=0; i<n; i++) ; This should have no side effects It was already used for android builds git-svn-id: svn://svn.rockbox.org/rockbox/trunk@28021 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'tools')
-rwxr-xr-xtools/configure4
1 files changed, 2 insertions, 2 deletions
diff --git a/tools/configure b/tools/configure
index 5d6d63ac88..7821ab6d3b 100755
--- a/tools/configure
+++ b/tools/configure
@@ -9,7 +9,7 @@
#
# global CC options for all platforms
-CCOPTS="-W -Wall -Wundef -O -nostdlib -ffreestanding -Wstrict-prototypes -pipe"
+CCOPTS="-W -Wall -Wundef -O -nostdlib -ffreestanding -Wstrict-prototypes -pipe -std=gnu99"
# global LD options for all platforms
GLOBAL_LDOPTS=""
@@ -464,7 +464,7 @@ androidcc () {
gccchoice="4.4.0"
prefixtools $ANDROID_NDK_PATH/build/prebuilt/linux-x86/arm-eabi-$gccchoice/bin/arm-eabi-
GCCOPTS=`echo $CCOPTS | sed -e s/-ffreestanding// -e s/-nostdlib// -e s/-Wundef//`
- GCCOPTS="$GCCOPTS -std=gnu99 -ffunction-sections -fno-short-enums -march=armv5te -mtune=xscale -msoft-float -fomit-frame-pointer"
+ GCCOPTS="$GCCOPTS -ffunction-sections -fno-short-enums -march=armv5te -mtune=xscale -msoft-float -fomit-frame-pointer"
GLOBAL_LDOPTS="$GLOBAL_LDOPTS -nostdlib -lc -Wl,--no-undefined -Wl,--gc-sections -Wl,-z,noexecstack -L$ANDROID_NDK_PATH/build/platforms/android-4/arch-arm/usr/lib/ -Wl,-rpath-link=$ANDROID_NKD_PATH/build/platforms/android-4/arch-arm/usr/lib"
LDOPTS="$LDOPTS -shared -nostdlib -lm -ldl -llog"
extradefines="$extradefines -DANDROID"