[gnome-builder] build: add -O0 -g when --enable-debug is specified



commit 23e134ac3df2b3ea1d4c09f4cb9277b5ffc0aabf
Author: Christian Hergert <christian hergert me>
Date:   Mon May 11 16:52:31 2015 -0700

    build: add -O0 -g when --enable-debug is specified

 configure.ac |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)
---
diff --git a/configure.ac b/configure.ac
index f322d5c..211249b 100644
--- a/configure.ac
+++ b/configure.ac
@@ -122,10 +122,10 @@ AC_ARG_ENABLE(debug,
               enable_debug=builder_debug_default)
 AS_CASE(["x$enable_debug"],
         [yes],[
-            ENABLE_DEBUG=1
+            DEBUG_CFLAGS="$DEBUG_CFLAGS -O0"
+            DEBUG_CFLAGS="$DEBUG_CFLAGS -g"
         ],
         [minimum],[
-            ENABLE_DEBUG=1
             DEBUG_CFLAGS="$DEBUG_CFLAGS -DG_DISABLE_CAST_CHECKS"
         ],
         [no],[


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