From 364b2fc08a780e415f2e113ad58def3571f0b16e Mon Sep 17 00:00:00 2001 From: Mike Kestner Date: Sun, 9 Jan 2011 11:24:16 -0600 Subject: [PATCH] Add --debug to mono invocations in maintainer mode. * configure.ac: add --debug to RUNTIME in maintainer mode. --- configure.ac | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/configure.ac b/configure.ac index 66c207328..8aa4f800d 100644 --- a/configure.ac +++ b/configure.ac @@ -73,8 +73,10 @@ CFLAGS="${CFLAGS} -g -Wall -Wunused -Wmissing-prototypes -Wmissing-declarations if test "x$enable_maintainer_mode" = "xyes"; then DEBUG_FLAGS='-debug' +RUNTIME_DEBUG_FLAGS=' --debug' else DEBUG_FLAGS= +RUNTIME_DEBUG_FLAGS= AC_ARG_ENABLE(debug, [ --enable-debug Build debugger (.mdb) files for dlls], DEBUG_FLAGS='-debug' ) @@ -118,7 +120,7 @@ AC_PATH_PROG(RUNTIME, mono, no) # If mono is found, it's in the path. Require it to be in the path at runtime as well if test "x$RUNTIME" != "no" ; then - RUNTIME=mono + RUNTIME="mono$RUNTIME_DEBUG_FLAGS" fi AC_PATH_PROG(CSC, gmcs, no)