[rygel] build: Only pass -g when debugging is enabled



commit 62fb785d316afcbfe02a2a75918e282971acaaad
Author: Jens Georg <mail jensge org>
Date:   Sat Oct 22 08:43:49 2011 +0200

    build: Only pass -g when debugging is enabled

 common.am    |    3 ++-
 configure.ac |    3 +++
 2 files changed, 5 insertions(+), 1 deletions(-)
---
diff --git a/common.am b/common.am
index 8d114eb..7f99e9e 100644
--- a/common.am
+++ b/common.am
@@ -47,7 +47,8 @@ RYGEL_COMMON_PLUGIN_VALAFLAGS = \
 RYGEL_COMMON_VALAFLAGS = \
 	--pkg rygel-build-config --pkg gupnp-1.0 \
 	--vapidir=$(rygeldir) \
-	--pkg gupnp-av-1.0 --pkg gee-1.0 -g
+	--pkg gupnp-av-1.0 --pkg gee-1.0 \
+	$(RYGEL_DEBUG_VALAFLAGS)
 
 RYGEL_PLUGIN_LINKER_FLAGS = -shared -fPIC -module -avoid-version
 
diff --git a/configure.ac b/configure.ac
index 3d60160..ea09712 100644
--- a/configure.ac
+++ b/configure.ac
@@ -104,8 +104,11 @@ AC_ARG_ENABLE(debug,
         enable_debug=no)
 if test "x$enable_debug" = "xyes"; then
         CFLAGS="$CFLAGS -O0 -g"
+        RYGEL_DEBUG_VALAFLAGS="-g"
 fi
 
+AC_SUBST(RYGEL_DEBUG_VALAFLAGS)
+
 dnl Strict compiler
 AC_ARG_ENABLE(strict-cc,
 	AS_HELP_STRING([--enable-strict-cc],[enable strict C compiler]),,



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