diff options
| author | Daniel Stenberg <daniel@haxx.se> | 2004-10-04 13:02:41 +0000 |
|---|---|---|
| committer | Daniel Stenberg <daniel@haxx.se> | 2004-10-04 13:02:41 +0000 |
| commit | 235b50b42d85c2723bd1df2636edab876fea37c1 (patch) | |
| tree | 295582c57e60330660db7a729dfd53baaa764749 | |
| parent | b25eb2910094d0e4de4017bb5ea723a925f0df25 (diff) | |
| download | rockbox-235b50b42d85c2723bd1df2636edab876fea37c1.zip rockbox-235b50b42d85c2723bd1df2636edab876fea37c1.tar.gz rockbox-235b50b42d85c2723bd1df2636edab876fea37c1.tar.bz2 rockbox-235b50b42d85c2723bd1df2636edab876fea37c1.tar.xz | |
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
| -rwxr-xr-x | tools/configure | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/tools/configure b/tools/configure index 37791bc..154166b 100755 --- a/tools/configure +++ b/tools/configure @@ -8,6 +8,8 @@ # $Id$ # +# global CC options for all platforms +CCOPTS="-W -Wall -O -nostdlib -ffreestanding -Wstrict-prototypes" # # Begin Function Definitions @@ -23,6 +25,7 @@ shcc () { AR=sh-elf-ar AS=sh-elf-as OC=sh-elf-objcopy + GCCOPTS="$CCOPTS -m1" } coldfirecc () { @@ -31,6 +34,7 @@ coldfirecc () { AR=m68k-elf-ar AS=m68k-elf-as OC=m68k-elf-objcopy + GCCOPTS="$CCOPTS -m5200" } whichsim () { @@ -376,10 +380,12 @@ if [ -z "$debug" ]; then [Dd]) debug="1" echo "Debug build selected" + GCCOPTS="$GCCOPTS -g -DDEBUG" ;; *) debug="" echo "Normal build selected" + GCCOPTS="$GCCOPTS -fomit-frame-pointer -fschedule-insns" ;; esac @@ -424,6 +430,7 @@ sed > Makefile \ -e "s,@APPEXTRA@,${appextra},g" \ -e "s,@ARCHOSROM@,${archosrom},g" \ -e "s,@PLUGINS@,${plugins},g" \ + -e "s,@GCCOPTS@,${GCCOPTS},g" \ <<EOF ## Automaticly generated. http://rockbox.haxx.se @@ -449,6 +456,7 @@ export LD=@LD@ export AR=@AR@ export AS=@AS@ export OC=@OC@ +export GCCOPTS=@GCCOPTS@ .PHONY: all clean tags zip |