summaryrefslogtreecommitdiff
path: root/solenv/gbuild
diff options
context:
space:
mode:
authorDavid Tardon <dtardon@redhat.com>2011-04-05 14:28:02 +0200
committerDavid Tardon <dtardon@redhat.com>2011-04-05 14:32:28 +0200
commit4620f155b5ec9805e6387b5fbb36f62500c3ce72 (patch)
treee0395102a3f4579dad7bd34e5324ced12f10cd28 /solenv/gbuild
parent8542a0d05d524abd2e0d3beda33b37c084c8e112 (diff)
do not define NDEBUG on debug level 1
Diffstat (limited to 'solenv/gbuild')
-rw-r--r--solenv/gbuild/gbuild.mk10
1 files changed, 4 insertions, 6 deletions
diff --git a/solenv/gbuild/gbuild.mk b/solenv/gbuild/gbuild.mk
index 8fbe21850f32..b94295f36678 100644
--- a/solenv/gbuild/gbuild.mk
+++ b/solenv/gbuild/gbuild.mk
@@ -208,15 +208,13 @@ ifneq ($(strip $(SOLAR_JAVA)),)
gb_GLOBALDEFS += -DSOLAR_JAVA
endif
-ifeq ($(gb_DEBUGLEVEL),2)
-gb_GLOBALDEFS += \
- -DDEBUG \
-
-else
+ifeq ($(gb_DEBUGLEVEL),0)
gb_GLOBALDEFS += \
-DOPTIMIZE \
-DNDEBUG \
-
+else ifneq ($(gb_DEBUGLEVEL),1) # 2 or more
+gb_GLOBALDEFS += \
+ -DDEBUG \
endif
ifneq ($(strip $(ENABLE_GTK)),)