summaryrefslogtreecommitdiff
path: root/solenv
diff options
context:
space:
mode:
authorStephan Bergmann <sbergman@redhat.com>2012-04-24 14:00:57 +0200
committerStephan Bergmann <sbergman@redhat.com>2012-04-24 14:08:55 +0200
commitfc7a55fd3f2df0ffc9ea64751ebdc187a58b778c (patch)
treec8bb18b78b78dfe75d25bad5c04b9fe5a185fc6b /solenv
parent658954e8b50fc264428402dc5a95b0d6f690d191 (diff)
Set gb_DEBUGLEVEL=1 for --enable-dbgutil after all
This is a partial revert of db8df57acd601ed084bd0122683e1bd066a4f143 "fixes for debug flags handling." Removing this caused various nastinesses, at least: * Some tinderbox started to emit bogus compiler warnings at -O2 vs. -O0, see cf9c715aee2f97a1a6f611fe46a47e238cb03658 "Avoid bogus warnings (GCC 4.4.6)" * General DBG_UTIL vs. OSL_DEBUG_LEVEL confusion in the code, see 729165ebacc6ff8bd1e5c936252cdace1782824b "OSL_DEBUG_LEVEL > 0 -> defined DBG_UTIL" and a7c7942fd1946da978673d2c350630f83603d18d "DBG_UTIL vs OSL_DEBUG_LEVEL confusion" * --enable-dbgutil would no longer prevent -DNDEBUG (i.e., assert became ineffective in such builds)
Diffstat (limited to 'solenv')
-rw-r--r--solenv/gbuild/gbuild.mk2
1 files changed, 2 insertions, 0 deletions
diff --git a/solenv/gbuild/gbuild.mk b/solenv/gbuild/gbuild.mk
index 578393ed6541..7d1d66e9b21f 100644
--- a/solenv/gbuild/gbuild.mk
+++ b/solenv/gbuild/gbuild.mk
@@ -99,6 +99,8 @@ endif
gb_DEBUGLEVEL := 0
ifneq ($(strip $(DEBUG)$(debug)),)
gb_DEBUGLEVEL := 1
+else ifeq ($(gb_PRODUCT),$(false))
+gb_DEBUGLEVEL := 1
endif
ifneq ($(strip $(DBGLEVEL)$(dbglevel)),)