diff options
author | Rafaël Carré <rafael.carre@gmail.com> | 2010-09-07 14:21:13 +0000 |
---|---|---|
committer | Rafaël Carré <rafael.carre@gmail.com> | 2010-09-07 14:21:13 +0000 |
commit | c168d2317ff3d163ba1181c5c823e521cc7164ec (patch) | |
tree | 499d965d6e807b1937efba547b36aa890d3f7c53 | |
parent | bd737477bf77c426cd79ca08f94f4ac16c35d615 (diff) | |
download | rockbox-c168d2317ff3d163ba1181c5c823e521cc7164ec.tar.gz 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
-rwxr-xr-x | tools/configure | 4 |
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 @@ | |||
9 | # | 9 | # |
10 | 10 | ||
11 | # global CC options for all platforms | 11 | # global CC options for all platforms |
12 | CCOPTS="-W -Wall -Wundef -O -nostdlib -ffreestanding -Wstrict-prototypes -pipe" | 12 | CCOPTS="-W -Wall -Wundef -O -nostdlib -ffreestanding -Wstrict-prototypes -pipe -std=gnu99" |
13 | 13 | ||
14 | # global LD options for all platforms | 14 | # global LD options for all platforms |
15 | GLOBAL_LDOPTS="" | 15 | GLOBAL_LDOPTS="" |
@@ -464,7 +464,7 @@ androidcc () { | |||
464 | gccchoice="4.4.0" | 464 | gccchoice="4.4.0" |
465 | prefixtools $ANDROID_NDK_PATH/build/prebuilt/linux-x86/arm-eabi-$gccchoice/bin/arm-eabi- | 465 | prefixtools $ANDROID_NDK_PATH/build/prebuilt/linux-x86/arm-eabi-$gccchoice/bin/arm-eabi- |
466 | GCCOPTS=`echo $CCOPTS | sed -e s/-ffreestanding// -e s/-nostdlib// -e s/-Wundef//` | 466 | GCCOPTS=`echo $CCOPTS | sed -e s/-ffreestanding// -e s/-nostdlib// -e s/-Wundef//` |
467 | GCCOPTS="$GCCOPTS -std=gnu99 -ffunction-sections -fno-short-enums -march=armv5te -mtune=xscale -msoft-float -fomit-frame-pointer" | 467 | GCCOPTS="$GCCOPTS -ffunction-sections -fno-short-enums -march=armv5te -mtune=xscale -msoft-float -fomit-frame-pointer" |
468 | 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" | 468 | 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" |
469 | LDOPTS="$LDOPTS -shared -nostdlib -lm -ldl -llog" | 469 | LDOPTS="$LDOPTS -shared -nostdlib -lm -ldl -llog" |
470 | extradefines="$extradefines -DANDROID" | 470 | extradefines="$extradefines -DANDROID" |