summaryrefslogtreecommitdiff
path: root/tools/configure
diff options
context:
space:
mode:
Diffstat (limited to 'tools/configure')
-rwxr-xr-xtools/configure20
1 files changed, 4 insertions, 16 deletions
diff --git a/tools/configure b/tools/configure
index 2b34ed4cff..11c8513c92 100755
--- a/tools/configure
+++ b/tools/configure
@@ -8,7 +8,7 @@
8# 8#
9 9
10# global CC options for all platforms 10# global CC options for all platforms
11CCOPTS="-W -Wall -Wundef -O -nostdlib -ffreestanding -Wstrict-prototypes -pipe -std=gnu99" 11CCOPTS="-W -Wall -Wextra -Wundef -Os -nostdlib -ffreestanding -Wstrict-prototypes -pipe -std=gnu99 -funit-at-a-time"
12 12
13# LD options for the core 13# LD options for the core
14LDOPTS="" 14LDOPTS=""
@@ -136,7 +136,7 @@ app_set_lcd_size () {
136 136
137findarmgcc() { 137findarmgcc() {
138 prefixtools arm-elf-eabi- 138 prefixtools arm-elf-eabi-
139 gccchoice="4.4.4" 139 gccchoice="4.9.4"
140} 140}
141 141
142# scan the $PATH for the given command 142# scan the $PATH for the given command
@@ -502,6 +502,7 @@ calmrisccc () {
502 GCCOPTS="-Wl\,--no-check-sections $CCOPTS" 502 GCCOPTS="-Wl\,--no-check-sections $CCOPTS"
503 GCCOPTIMIZE="-fomit-frame-pointer" 503 GCCOPTIMIZE="-fomit-frame-pointer"
504 endian="big" 504 endian="big"
505 gccchoice="4.9.4"
505} 506}
506 507
507coldfirecc () { 508coldfirecc () {
@@ -509,7 +510,7 @@ coldfirecc () {
509 GCCOPTS="$CCOPTS -mcpu=5249 -malign-int -mstrict-align" 510 GCCOPTS="$CCOPTS -mcpu=5249 -malign-int -mstrict-align"
510 GCCOPTIMIZE="-fomit-frame-pointer" 511 GCCOPTIMIZE="-fomit-frame-pointer"
511 endian="big" 512 endian="big"
512 gccchoice="4.5.2" 513 gccchoice="4.9.4"
513} 514}
514 515
515arm7tdmicc () { 516arm7tdmicc () {
@@ -2588,7 +2589,6 @@ fi
2588 sysfont="08-Rockfont" 2589 sysfont="08-Rockfont"
2589 if [ "$ARG_ARM_THUMB" != 0 ]; then ARG_ARM_THUMB=1; fi 2590 if [ "$ARG_ARM_THUMB" != 0 ]; then ARG_ARM_THUMB=1; fi
2590 arm9tdmicc 2591 arm9tdmicc
2591 GCCOPTS=`echo $GCCOPTS | sed 's/ -O / -Os /'`
2592 ;; 2592 ;;
2593 2593
2594 2594
@@ -2631,7 +2631,6 @@ fi
2631 sysfont="08-Rockfont" 2631 sysfont="08-Rockfont"
2632 if [ "$ARG_ARM_THUMB" != 0 ]; then ARG_ARM_THUMB=1; fi 2632 if [ "$ARG_ARM_THUMB" != 0 ]; then ARG_ARM_THUMB=1; fi
2633 arm9tdmicc 2633 arm9tdmicc
2634 GCCOPTS=`echo $GCCOPTS | sed 's/ -O / -Os /'`
2635 ;; 2634 ;;
2636 2635
2637 2636
@@ -2676,7 +2675,6 @@ fi
2676 t_model="sansa-c200v2" 2675 t_model="sansa-c200v2"
2677 if [ "$ARG_ARM_THUMB" != 0 ]; then ARG_ARM_THUMB=1; fi 2676 if [ "$ARG_ARM_THUMB" != 0 ]; then ARG_ARM_THUMB=1; fi
2678 arm9tdmicc 2677 arm9tdmicc
2679 GCCOPTS=`echo $GCCOPTS | sed 's/ -O / -Os /'`
2680 ;; 2678 ;;
2681 2679
2682 60|sansaclipv2) 2680 60|sansaclipv2)
@@ -4519,16 +4517,6 @@ echo "Using $LD $ldver"
4519makever=`make --version | head -1` 4517makever=`make --version | head -1`
4520echo "Detected make $makever" 4518echo "Detected make $makever"
4521 4519
4522if test "$CC" = "m68k-elf-gcc"; then
4523 # convert -O to -Os to get smaller binaries!
4524 GCCOPTS=`echo $GCCOPTS | sed 's/ -O / -Os /'`
4525fi
4526if test "$CC" = "mipsel-elf-gcc"; then
4527 # convert -O to -Os to get smaller binaries!
4528 GCCOPTS=`echo $GCCOPTS | sed 's/ -O / -Os /'`
4529fi
4530
4531
4532if [ "$ARG_CCACHE" = "1" ]; then 4520if [ "$ARG_CCACHE" = "1" ]; then
4533 echo "Enable ccache for building" 4521 echo "Enable ccache for building"
4534 ccache="ccache" 4522 ccache="ccache"