summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorEric Andersen <andersen@codepoet.org>2001-10-02 09:25:58 +0000
committerEric Andersen <andersen@codepoet.org>2001-10-02 09:25:58 +0000
commit04dafe547980c50bef57b3ea7a4f9e3d81400a87 (patch)
tree5bda2985427c61fac05492b20ee6cbbe84b38772
parentdb20984e9baf42ce9b3e8d0de42d2efe21a05b13 (diff)
Turn off optimization when debugging
-rw-r--r--Rules.mak8
1 files changed, 4 insertions, 4 deletions
diff --git a/Rules.mak b/Rules.mak
index e38370516..371eed8d3 100644
--- a/Rules.mak
+++ b/Rules.mak
@@ -47,8 +47,8 @@ endif
ARFLAGS=r
-CCFLAGS=$(WARNINGS) $(OPTIMIZATION) -fno-builtin -nostdinc $(CPUFLAGS) -I$(TOPDIR)include -I$(GCCINCDIR) -I. -D_LIBC
-TARGET_CCFLAGS=--uclibc-use-build-dir $(WARNINGS) $(OPTIMIZATION) $(CPUFLAGS)
+CCFLAGS=$(WARNINGS) -fno-builtin -nostdinc $(CPUFLAGS) -I$(TOPDIR)include -I$(GCCINCDIR) -I. -D_LIBC
+TARGET_CCFLAGS=--uclibc-use-build-dir $(WARNINGS) $(CPUFLAGS)
CFLAGS=$(ARCH_CFLAGS) $(CCFLAGS) $(DEFS) $(ARCH_CFLAGS2)
TARGET_CC= $(TOPDIR)extra/gcc-uClibc/$(TARGET_ARCH)-uclibc-gcc
TARGET_CFLAGS=$(ARCH_CFLAGS) $(TARGET_CCFLAGS) $(DEFS) $(ARCH_CFLAGS2)
@@ -60,8 +60,8 @@ ifeq ($(strip $(DODEBUG)),true)
TARGET_LDFLAGS = --uclibc-use-build-dir -Wl,-warn-common
STRIPTOOL = /bin/true -Since_we_are_debugging
else
- CFLAGS += -DNDEBUG #-fomit-frame-pointer
- TARGET_CFLAGS += -DNDEBUG #-fomit-frame-pointer
+ CFLAGS += $(OPTIMIZATION) -DNDEBUG #-fomit-frame-pointer
+ TARGET_CFLAGS += $(OPTIMIZATION) -DNDEBUG #-fomit-frame-pointer
LDFLAGS = -s -nostdlib -Wl,-warn-common
TARGET_LDFLAGS = --uclibc-use-build-dir -s -Wl,-warn-common
endif