summaryrefslogtreecommitdiff
path: root/src/Makefile.am
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2017-02-05 20:03:13 +0300
committerAndrei Karas <akaras@inbox.ru>2017-02-05 20:28:38 +0300
commit5b4774d352787626061752e8dba6377b25b64f66 (patch)
tree0f82cfa69eda9424f75336e9b0bf7b837b14bb54 /src/Makefile.am
parentcfc63060bb553e8be91949e16d04b5801a7527eb (diff)
downloadmanaverse-5b4774d352787626061752e8dba6377b25b64f66.tar.gz
manaverse-5b4774d352787626061752e8dba6377b25b64f66.tar.bz2
manaverse-5b4774d352787626061752e8dba6377b25b64f66.tar.xz
manaverse-5b4774d352787626061752e8dba6377b25b64f66.zip
Add configure option --enable-glibcdebug for enable libcstdc++ debug mode.
By default this option disabled.
Diffstat (limited to 'src/Makefile.am')
-rw-r--r--src/Makefile.am9
1 files changed, 8 insertions, 1 deletions
diff --git a/src/Makefile.am b/src/Makefile.am
index 0f0bae0f0..51c49cb99 100644
--- a/src/Makefile.am
+++ b/src/Makefile.am
@@ -26,6 +26,11 @@ manaplus_CXXFLAGS += -Werror
dyecmd_CXXFLAGS += -Werror
endif
+if ENABLE_GLIBCDEBUG
+manaplus_CXXFLAGS += -D_GLIBCXX_DEBUG -D_GLIBCXX_DEBUG_PEDANTIC
+dyecmd_CXXFLAGS += -D_GLIBCXX_DEBUG -D_GLIBCXX_DEBUG_PEDANTIC
+endif
+
if USE_X11
manaplus_CXXFLAGS += -DUSE_X11
dyecmd_CXXFLAGS += -DUSE_X11
@@ -1887,7 +1892,9 @@ if ENABLE_ASSERTS
manaplustests_CXXFLAGS += -DENABLE_ASSERTS
manaplustests_LDFLAGS = -rdynamic
endif
-
+if ENABLE_GLIBCDEBUG
+manaplustests_CXXFLAGS += -D_GLIBCXX_DEBUG -D_GLIBCXX_DEBUG_PEDANTIC
+endif
if USE_X11
manaplustests_CXXFLAGS += -DUSE_X11
endif