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



commit 00a529a03147f8d9221fdc7a6302622d112929fa
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 695a933..c6bff6d 100644
--- a/common.am
+++ b/common.am
@@ -48,7 +48,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 56fe566..04d22e4 100644
--- a/configure.ac
+++ b/configure.ac
@@ -102,8 +102,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]