diff options
author | andersen <andersen@69ca8d6d-28ef-0310-b511-8ec308f3f277> | 2003-03-07 17:27:51 +0000 |
---|---|---|
committer | andersen <andersen@69ca8d6d-28ef-0310-b511-8ec308f3f277> | 2003-03-07 17:27:51 +0000 |
commit | 322790d606a30c81a58ece90c7b1551420df290f (patch) | |
tree | 3db1e73d1348266ca8993076a3b4850f3464cc9d | |
parent | af453f9bc697f90f8a662083bc6f40a0b0af539a (diff) | |
download | busybox-w32-322790d606a30c81a58ece90c7b1551420df290f.tar.gz busybox-w32-322790d606a30c81a58ece90c7b1551420df290f.tar.bz2 busybox-w32-322790d606a30c81a58ece90c7b1551420df290f.zip |
Explicitly define -DNDEBUG so asserts don't clutter release code
git-svn-id: svn://busybox.net/trunk/busybox@6712 69ca8d6d-28ef-0310-b511-8ec308f3f277
-rw-r--r-- | Rules.mak | 3 |
1 files changed, 2 insertions, 1 deletions
@@ -35,6 +35,7 @@ BUILDTIME := $(shell TZ=UTC date -u "+%Y.%m.%d-%H:%M%z") | |||
35 | # by asking the CC compiler what arch it compiles things for, so unless | 35 | # by asking the CC compiler what arch it compiles things for, so unless |
36 | # your compiler is broken, you should not need to specify TARGET_ARCH | 36 | # your compiler is broken, you should not need to specify TARGET_ARCH |
37 | CROSS =$(subst ",, $(strip $(CROSS_COMPILER_PREFIX))) | 37 | CROSS =$(subst ",, $(strip $(CROSS_COMPILER_PREFIX))) |
38 | #CROSS =/usr/i386-linux-uclibc/bin/i386-uclibc- | ||
38 | CC = $(CROSS)gcc | 39 | CC = $(CROSS)gcc |
39 | AR = $(CROSS)ar | 40 | AR = $(CROSS)ar |
40 | AS = $(CROSS)as | 41 | AS = $(CROSS)as |
@@ -161,7 +162,7 @@ ifeq ($(strip $(DODEBUG)),y) | |||
161 | LDFLAGS +=-Wl,-warn-common | 162 | LDFLAGS +=-Wl,-warn-common |
162 | STRIPCMD:=/bin/true -Not_stripping_since_we_are_debugging | 163 | STRIPCMD:=/bin/true -Not_stripping_since_we_are_debugging |
163 | else | 164 | else |
164 | CFLAGS += $(WARNINGS) $(OPTIMIZATIONS) -D_GNU_SOURCE | 165 | CFLAGS+=$(WARNINGS) $(OPTIMIZATIONS) -D_GNU_SOURCE -DNDEBUG |
165 | LDFLAGS += -s -Wl,-warn-common | 166 | LDFLAGS += -s -Wl,-warn-common |
166 | STRIPCMD:=$(STRIP) --remove-section=.note --remove-section=.comment | 167 | STRIPCMD:=$(STRIP) --remove-section=.note --remove-section=.comment |
167 | endif | 168 | endif |