summaryrefslogtreecommitdiff
path: root/tools
diff options
context:
space:
mode:
authorDaniel Stenberg <daniel@haxx.se>2004-10-04 13:02:41 +0000
committerDaniel Stenberg <daniel@haxx.se>2004-10-04 13:02:41 +0000
commit235b50b42d85c2723bd1df2636edab876fea37c1 (patch)
tree295582c57e60330660db7a729dfd53baaa764749 /tools
parentb25eb2910094d0e4de4017bb5ea723a925f0df25 (diff)
downloadrockbox-235b50b42d85c2723bd1df2636edab876fea37c1.tar.gz
rockbox-235b50b42d85c2723bd1df2636edab876fea37c1.zip
set compiler options here too, you MUST re-run configure once the next
Makefile commit is made git-svn-id: svn://svn.rockbox.org/rockbox/trunk@5157 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'tools')
-rwxr-xr-xtools/configure8
1 files changed, 8 insertions, 0 deletions
diff --git a/tools/configure b/tools/configure
index 37791bc6e4..154166bf60 100755
--- a/tools/configure
+++ b/tools/configure
@@ -8,6 +8,8 @@
8# $Id$ 8# $Id$
9# 9#
10 10
11# global CC options for all platforms
12CCOPTS="-W -Wall -O -nostdlib -ffreestanding -Wstrict-prototypes"
11 13
12# 14#
13# Begin Function Definitions 15# Begin Function Definitions
@@ -23,6 +25,7 @@ shcc () {
23 AR=sh-elf-ar 25 AR=sh-elf-ar
24 AS=sh-elf-as 26 AS=sh-elf-as
25 OC=sh-elf-objcopy 27 OC=sh-elf-objcopy
28 GCCOPTS="$CCOPTS -m1"
26} 29}
27 30
28coldfirecc () { 31coldfirecc () {
@@ -31,6 +34,7 @@ coldfirecc () {
31 AR=m68k-elf-ar 34 AR=m68k-elf-ar
32 AS=m68k-elf-as 35 AS=m68k-elf-as
33 OC=m68k-elf-objcopy 36 OC=m68k-elf-objcopy
37 GCCOPTS="$CCOPTS -m5200"
34} 38}
35 39
36whichsim () { 40whichsim () {
@@ -376,10 +380,12 @@ if [ -z "$debug" ]; then
376 [Dd]) 380 [Dd])
377 debug="1" 381 debug="1"
378 echo "Debug build selected" 382 echo "Debug build selected"
383 GCCOPTS="$GCCOPTS -g -DDEBUG"
379 ;; 384 ;;
380 *) 385 *)
381 debug="" 386 debug=""
382 echo "Normal build selected" 387 echo "Normal build selected"
388 GCCOPTS="$GCCOPTS -fomit-frame-pointer -fschedule-insns"
383 ;; 389 ;;
384 390
385 esac 391 esac
@@ -424,6 +430,7 @@ sed > Makefile \
424 -e "s,@APPEXTRA@,${appextra},g" \ 430 -e "s,@APPEXTRA@,${appextra},g" \
425 -e "s,@ARCHOSROM@,${archosrom},g" \ 431 -e "s,@ARCHOSROM@,${archosrom},g" \
426 -e "s,@PLUGINS@,${plugins},g" \ 432 -e "s,@PLUGINS@,${plugins},g" \
433 -e "s,@GCCOPTS@,${GCCOPTS},g" \
427<<EOF 434<<EOF
428## Automaticly generated. http://rockbox.haxx.se 435## Automaticly generated. http://rockbox.haxx.se
429 436
@@ -449,6 +456,7 @@ export LD=@LD@
449export AR=@AR@ 456export AR=@AR@
450export AS=@AS@ 457export AS=@AS@
451export OC=@OC@ 458export OC=@OC@
459export GCCOPTS=@GCCOPTS@
452 460
453.PHONY: all clean tags zip 461.PHONY: all clean tags zip
454 462