diff options
author | Eric Andersen <andersen@codepoet.org> | 2003-01-23 16:56:45 +0000 |
---|---|---|
committer | Eric Andersen <andersen@codepoet.org> | 2003-01-23 16:56:45 +0000 |
commit | 956574dc6be657deeae8f205cbb5370087488976 (patch) | |
tree | 62214cdce2d646aa2e45997dbdf49cad448da8e8 | |
parent | 2be77241537a65d5d1e507d2c2dd6afddb666049 (diff) |
Shuffle OPTIMIZATION setting a bit
-rw-r--r-- | Rules.mak | 7 |
1 files changed, 3 insertions, 4 deletions
@@ -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 |