enable libstdc++'s debug mode with --enable-debug
This commit is contained in:
parent
a908085492
commit
510737a54a
4 changed files with 11 additions and 0 deletions
|
@ -1859,13 +1859,16 @@ dnl ===================================================================
|
|||
AC_MSG_CHECKING([whether to do a debug build])
|
||||
if test -n "$enable_debug" && test "$enable_debug" != "no"; then
|
||||
ENABLE_DEBUG="TRUE"
|
||||
ENABLE_DEBUG_STL="TRUE"
|
||||
enable_symbols="yes"
|
||||
AC_MSG_RESULT([yes])
|
||||
else
|
||||
ENABLE_DEBUG="FALSE"
|
||||
ENABLE_DEBUG_STL="FALSE"
|
||||
AC_MSG_RESULT([no])
|
||||
fi
|
||||
AC_SUBST(ENABLE_DEBUG)
|
||||
AC_SUBST(ENABLE_DEBUG_STL)
|
||||
|
||||
dnl Set the ENABLE_DBGUTIL variable
|
||||
dnl ===================================================================
|
||||
|
|
|
@ -1516,6 +1516,7 @@ ToFile( "NO_BSYMBOLIC", $NO_BSYMBOLIC, "e" );
|
|||
if ("@ENABLE_DEBUG@" eq "TRUE") {
|
||||
ToFile( "debug", "true", "e" );
|
||||
}
|
||||
ToFile( "ENABLE_DEBUG_STL", "@ENABLE_DEBUG_STL@", "e" );
|
||||
if ("@ENABLE_WERROR@" eq "FALSE") {
|
||||
ToFile( "EXTERNAL_WARNINGS_NOT_ERRORS", "TRUE", "e" );
|
||||
}
|
||||
|
|
|
@ -120,6 +120,10 @@ ifeq ($(HAVE_CXX0X),TRUE)
|
|||
gb_CXXFLAGS += -std=c++0x -Wno-deprecated-declarations
|
||||
endif
|
||||
|
||||
ifeq ($(ENABLE_DEBUG_STL),TRUE)
|
||||
gb_CXXFLAGS += -D_GLIBCXX_DEBUG
|
||||
endif
|
||||
|
||||
ifneq ($(strip $(SYSBASE)),)
|
||||
gb_CXXFLAGS += --sysroot=$(SYSBASE)
|
||||
gb_CFLAGS += --sysroot=$(SYSBASE)
|
||||
|
|
|
@ -90,6 +90,9 @@ CFLAGSCXX+=-fvisibility-inlines-hidden
|
|||
.IF "$(HAVE_CXX0X)" == "TRUE"
|
||||
CFLAGSCXX+=-std=c++0x -Wno-deprecated-declarations
|
||||
.ENDIF # "$(HAVE_CXX0X)" == "TRUE"
|
||||
.IF "$(ENABLE_DEBUG_STL)" == "TRUE"
|
||||
CFLAGSCXX += -D_GLIBCXX_DEBUG
|
||||
.ENDIF
|
||||
|
||||
CFLAGS_CREATE_PCH=-x c++-header -I$(INCPCH) -DPRECOMPILED_HEADERS
|
||||
CFLAGS_USE_PCH=-I$(SLO)$/pch -DPRECOMPILED_HEADERS -Winvalid-pch
|
||||
|
|
Loading…
Reference in a new issue