summaryrefslogtreecommitdiff
path: root/Rules.mak
diff options
context:
space:
mode:
Diffstat (limited to 'Rules.mak')
-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