From a1e8b0867ea59b7b748a680395671a45e30c0cfe Mon Sep 17 00:00:00 2001 From: Alexey Sokolov Date: Sun, 26 Aug 2012 22:28:59 +0700 Subject: [PATCH] Fix --enable-debug on cygwin. --- configure.ac | 11 +++++++---- 1 file changed, 7 insertions(+), 4 deletions(-) diff --git a/configure.ac b/configure.ac index 5cfc4654..c41d32bf 100644 --- a/configure.ac +++ b/configure.ac @@ -153,10 +153,13 @@ AC_ARG_ENABLE([add-networks], if test "$DEBUG" != "no"; then appendCXX -ggdb3 AC_DEFINE([_DEBUG], [1], [Define for debugging]) - # These enable some debug options in g++'s STL, e.g. invalid use of iterators - AC_DEFINE([_GLIBCXX_DEBUG], [1], [Enable extra debugging checks in libstdc++]) - AC_DEFINE([_GLIBCXX_DEBUG_PEDANTIC], [1], [Enable extra debugging checks in libstdc++]) - AC_DEFINE([_GLIBCXX_CONCEPT_CHECKS], [1], [Enable extra debugging checks in libstdc++]) + if test "x$ISCYGWIN" != x1; then + # These enable some debug options in g++'s STL, e.g. invalid use of iterators + # But they cause crashes on cygwin while loading modules + AC_DEFINE([_GLIBCXX_DEBUG], [1], [Enable extra debugging checks in libstdc++]) + AC_DEFINE([_GLIBCXX_DEBUG_PEDANTIC], [1], [Enable extra debugging checks in libstdc++]) + AC_DEFINE([_GLIBCXX_CONCEPT_CHECKS], [1], [Enable extra debugging checks in libstdc++]) + fi else if test "x$OPTIMIZE" = "xyes"; then appendCXX -O2