From 4c8245b613a49c0900e8ec2c08486c779d11ddc0 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Lars=20Gullik=20Bj=C3=B8nnes?= Date: Tue, 18 May 2004 11:05:41 +0000 Subject: [PATCH] Use the libstdc++ debugging mode if compiling with enable-debug git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@8761 a592a061-630c-0410-9148-cb99ea01b6c8 --- config/ChangeLog | 5 +++++ config/lyxinclude.m4 | 5 ++++- 2 files changed, 9 insertions(+), 1 deletion(-) diff --git a/config/ChangeLog b/config/ChangeLog index 8b4438bab8..67c93edd6d 100644 --- a/config/ChangeLog +++ b/config/ChangeLog @@ -1,3 +1,8 @@ +2004-05-18 Lars Gullik Bjonnes + + * lyxinclude.m4 (enable-debug): Use the libstdc++ debugging mode + if configuring with enable-debug. + 2004-05-05 Jean-Marc Lasgouttes * xforms.m4 (LYX_CHECK_XFORMS_IMAGE_LOADER): rename diff --git a/config/lyxinclude.m4 b/config/lyxinclude.m4 index 08dc0f9684..adcc68ac38 100644 --- a/config/lyxinclude.m4 +++ b/config/lyxinclude.m4 @@ -216,7 +216,10 @@ if test x$GXX = xyes; then *) CXXFLAGS="$lyx_opt";; esac if test x$enable_debug = xyes ; then - CXXFLAGS="-g $CXXFLAGS" + case $gxx_version in + 3.4*) CXXFLAGS="-g -D_GLIBCXX_DEBUG -D_GLIBCXX_DEBUG_PEDANTIC $CXXFLAGS";; + *) CXXFLAGS="-g $CXXFLAGS";; + esac fi fi if test x$enable_warnings = xyes ; then