summaryrefslogtreecommitdiff
path: root/Rules.mak
diff options
context:
space:
mode:
authorEric Andersen <andersen@codepoet.org>2003-01-23 16:56:45 +0000
committerEric Andersen <andersen@codepoet.org>2003-01-23 16:56:45 +0000
commit956574dc6be657deeae8f205cbb5370087488976 (patch)
tree62214cdce2d646aa2e45997dbdf49cad448da8e8 /Rules.mak
parent2be77241537a65d5d1e507d2c2dd6afddb666049 (diff)
Shuffle OPTIMIZATION setting a bit
Diffstat (limited to 'Rules.mak')
-rw-r--r--Rules.mak7
1 files changed, 3 insertions, 4 deletions
diff --git a/Rules.mak b/Rules.mak
index eaaafdb7a..1cc8588a3 100644
--- a/Rules.mak
+++ b/Rules.mak
@@ -105,10 +105,7 @@ export TARGET_ARCH
ARFLAGS:=r
-# use '-Os' optimization if available, else use -O2, allow Config to override
OPTIMIZATION:=
-OPTIMIZATION+=$(call check_gcc,-Os,-O2)
-
# Some nice CPU specific optimizations
ifeq ($(strip $(TARGET_ARCH)),i386)
OPTIMIZATION+=$(call check_gcc,-mpreferred-stack-boundary=2,)
@@ -159,9 +156,11 @@ ifeq ($(strip $(TARGET_ARCH)),cris)
CPU_CFLAGS-$(CONFIG_CRIS):="-mlinux"
endif
+# use '-Os' optimization if available, else use -O2, allow Config to override
+OPTIMIZATION+=$(call check_gcc,-Os,-O2)
# Override optimization settings when debugging
ifeq ($(DODEBUG),y)
- OPTIMIZATION=$(call check_gcc,-Os,-O2)
+OPTIMIZATION=-O0
endif