diff options
author | Eric Andersen <andersen@codepoet.org> | 2002-12-04 05:30:38 +0000 |
---|---|---|
committer | Eric Andersen <andersen@codepoet.org> | 2002-12-04 05:30:38 +0000 |
commit | bddae88b6da238cff579e97ffaf5a6e2a1e5c778 (patch) | |
tree | ae97e33ff1d5c454f63a02289733fa03bd9b3e41 /Rules.mak | |
parent | 37e8a493e38421b46967338ee1ec2c534f0d05c3 (diff) |
Override optimization settings when debugging
Diffstat (limited to 'Rules.mak')
-rw-r--r-- | Rules.mak | 7 |
1 files changed, 6 insertions, 1 deletions
@@ -155,6 +155,12 @@ ifeq ($(strip $(TARGET_ARCH)),h8300) CPU_CFLAGS-y+=-mh -mint32 -fsigned-char endif +# Override optimization settings when debugging +ifeq ($(DODEBUG),y) + OPTIMIZATION=$(call check_gcc,-Os,-O2) +endif + + # Add a bunch of extra pedantic annoyingly strict checks WARNINGS+=-Wstrict-prototypes -Wno-trigraphs -fno-strict-aliasing # Some nice CFLAGS to work with @@ -165,7 +171,6 @@ ifeq ($(DODEBUG),y) CFLAGS += -g LDFLAGS:= $(CPU_LDFLAGS-y) -shared --warn-common --warn-once -z combreloc STRIPTOOL:= true -Since_we_are_debugging - OPTIMIZATION=$(call check_gcc,-Os,-O2) else LDFLAGS := $(CPU_LDFLAGS-y) -s -shared --warn-common --warn-once -z combreloc endif |