[gnac/devel] Added some flags for the compiler to improve the debugging abilities (trac ticket #12)



commit 87a02f0c2f09f88ecd4c36699a8835130452b7ee
Author: Benoît Dupasquier <bdupasqu src gnome org>
Date:   Sun Jan 17 10:17:53 2010 +0000

    Added some flags for the compiler to improve the debugging abilities (trac ticket #12)

 configure.ac |    7 +++++++
 1 files changed, 7 insertions(+), 0 deletions(-)
---
diff --git a/configure.ac b/configure.ac
index 60e4c63..b2e9a84 100644
--- a/configure.ac
+++ b/configure.ac
@@ -104,6 +104,13 @@ if test "$enable_deprecations" = "no"; then
   AC_SUBST(DISABLE_DEPRECATED)
 fi
 
+# debug support
+AC_ARG_ENABLE([debug], [],
+  [ if test "$enableval" = "yes"; then
+      AM_CFLAGS="$AM_CFLAGS -ggdb -O0"
+    fi
+  ])
+
 dnl We require Scroll Keeper 0.3.5 or above for the help
 #SCROLLKEEPER_BUILD_REQUIRED=0.3.5
 #AC_SUBST(SCROLLKEEPER_BUILD_REQUIRED)



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]