]> git.lyx.org Git - features.git/commitdiff
Use the libstdc++ debugging mode if compiling with enable-debug
authorLars Gullik Bjønnes <larsbj@gullik.org>
Tue, 18 May 2004 11:05:41 +0000 (11:05 +0000)
committerLars Gullik Bjønnes <larsbj@gullik.org>
Tue, 18 May 2004 11:05:41 +0000 (11:05 +0000)
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@8761 a592a061-630c-0410-9148-cb99ea01b6c8

config/ChangeLog
config/lyxinclude.m4

index 8b4438bab8b59a0a70e25d56f4ad428f16aad9c7..67c93edd6de624f20d8336b5d536933910bd45c8 100644 (file)
@@ -1,3 +1,8 @@
+2004-05-18  Lars Gullik Bjonnes  <larsbj@gullik.net>
+
+       * lyxinclude.m4 (enable-debug): Use the libstdc++ debugging mode
+       if configuring with enable-debug. 
+
 2004-05-05  Jean-Marc Lasgouttes  <lasgouttes@lyx.org>
 
        * xforms.m4 (LYX_CHECK_XFORMS_IMAGE_LOADER): rename
index 08dc0f96842b6d84914a7cb0befd9080a34dc451..adcc68ac38c681582a41b6b3963dd0a3c40902bd 100644 (file)
@@ -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