diff options
author | Michael Stahl <mst@openoffice.org> | 2011-10-10 18:10:12 +0200 |
---|---|---|
committer | Michael Stahl <mst@openoffice.org> | 2011-10-11 17:56:59 +0200 |
commit | e0c72547ce57c25db61ec3da6c2f2f2792348c7d (patch) | |
tree | dd3adb4f7d88081a91924938ff7cba6f449d775d /solenv | |
parent | 31973712c1ad7b995e9920af65e27f5879b33db9 (diff) |
enable libstdc++ debug mode with --enable-dbgutil
Diffstat (limited to 'solenv')
-rw-r--r-- | solenv/gbuild/platform/unxgcc.mk | 7 | ||||
-rw-r--r-- | solenv/inc/unxgcc.mk | 5 |
2 files changed, 12 insertions, 0 deletions
diff --git a/solenv/gbuild/platform/unxgcc.mk b/solenv/gbuild/platform/unxgcc.mk index 7ee4217ee06d..baa71bd2fd30 100644 --- a/solenv/gbuild/platform/unxgcc.mk +++ b/solenv/gbuild/platform/unxgcc.mk @@ -109,6 +109,13 @@ endif endif +# enable debug STL +ifeq ($(gb_PRODUCT),$(false)) +gb_COMPILERDEFS += \ + -D_GLIBCXX_DEBUG \ + +endif + gb_CCVER := $(shell $(gb_CC) -dumpversion | $(gb_AWK) -F. -- '{ print $$1*10000+$$2*100+$$3 }') gb_GccLess460 := $(shell expr $(gb_CCVER) \< 40600) diff --git a/solenv/inc/unxgcc.mk b/solenv/inc/unxgcc.mk index 1446bf8bf033..224c7e917b1e 100644 --- a/solenv/inc/unxgcc.mk +++ b/solenv/inc/unxgcc.mk @@ -94,6 +94,11 @@ CFLAGSCXX+=-Wno-deprecated-declarations .ENDIF .ENDIF # "$(HAVE_CXX0X)" == "TRUE" +.IF "$(PRODUCT)"!="full" +# enable debug STL +CFLAGSCXX += -D_GLIBCXX_DEBUG +.ENDIF # !PRODUCT + CFLAGS_CREATE_PCH=-x c++-header -I$(INCPCH) -DPRECOMPILED_HEADERS CFLAGS_USE_PCH=-I$(SLO)$/pch -DPRECOMPILED_HEADERS -Winvalid-pch CFLAGS_USE_EXCEPTIONS_PCH=-I$(SLO)$/pch_ex -DPRECOMPILED_HEADERS -Winvalid-pch |