summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorEric Andersen2003-03-07 17:27:51 +0000
committerEric Andersen2003-03-07 17:27:51 +0000
commitbae7c1ac240211bd3183d48888708bfbc4f96a6d (patch)
tree3db1e73d1348266ca8993076a3b4850f3464cc9d
parent08f4a4c50807bd51f137df84890e35af32ca864d (diff)
downloadbusybox-bae7c1ac240211bd3183d48888708bfbc4f96a6d.zip
busybox-bae7c1ac240211bd3183d48888708bfbc4f96a6d.tar.gz
Explicitly define -DNDEBUG so asserts don't clutter release code
-rw-r--r--Rules.mak3
1 files changed, 2 insertions, 1 deletions
diff --git a/Rules.mak b/Rules.mak
index 24c89ce..25c08ac 100644
--- a/Rules.mak
+++ b/Rules.mak
@@ -35,6 +35,7 @@ BUILDTIME := $(shell TZ=UTC date -u "+%Y.%m.%d-%H:%M%z")
# by asking the CC compiler what arch it compiles things for, so unless
# your compiler is broken, you should not need to specify TARGET_ARCH
CROSS =$(subst ",, $(strip $(CROSS_COMPILER_PREFIX)))
+#CROSS =/usr/i386-linux-uclibc/bin/i386-uclibc-
CC = $(CROSS)gcc
AR = $(CROSS)ar
AS = $(CROSS)as
@@ -161,7 +162,7 @@ ifeq ($(strip $(DODEBUG)),y)
LDFLAGS +=-Wl,-warn-common
STRIPCMD:=/bin/true -Not_stripping_since_we_are_debugging
else
- CFLAGS += $(WARNINGS) $(OPTIMIZATIONS) -D_GNU_SOURCE
+ CFLAGS+=$(WARNINGS) $(OPTIMIZATIONS) -D_GNU_SOURCE -DNDEBUG
LDFLAGS += -s -Wl,-warn-common
STRIPCMD:=$(STRIP) --remove-section=.note --remove-section=.comment
endif