From 235b50b42d85c2723bd1df2636edab876fea37c1 Mon Sep 17 00:00:00 2001 From: Daniel Stenberg Date: Mon, 4 Oct 2004 13:02:41 +0000 Subject: 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 --- tools/configure | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/tools/configure b/tools/configure index 37791bc6e4..154166bf60 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" \ <