File mono-debugger-cflags.patch of Package mono-debugger

--- configure
+++ configure
@@ -21519,7 +21519,7 @@
 
 
 
-CFLAGS='-g -Wall -Wunused -Wmissing-prototypes -Wmissing-declarations -Wstrict-prototypes  -Wmissing-prototypes -Wnested-externs  -Wshadow -Wpointer-arith -Wno-cast-qual -Wcast-align -Wwrite-strings'
+CFLAGS="$CFLAGS -g -Wall -Wunused -Wmissing-prototypes -Wmissing-declarations -Wstrict-prototypes  -Wmissing-prototypes -Wnested-externs  -Wshadow -Wpointer-arith -Wno-cast-qual -Wcast-align -Wwrite-strings"
 
 # Extract the first word of "pkg-config", so it can be a program name with args.
 set dummy pkg-config; ac_word=$2
@@ -23417,7 +23417,7 @@
 
 { echo "$as_me:$LINENO: checking Whether your Mono is working" >&5
 echo $ECHO_N "checking Whether your Mono is working... $ECHO_C" >&6; }
-old_CFLAGS=$cflags
+old_CFLAGS=$CFLAGS
 CFLAGS=$WRAPPER_CFLAGS
 cat >conftest.$ac_ext <<_ACEOF
 /* confdefs.h.  */
--- configure.in
+++ configure.in
@@ -104,7 +104,7 @@
 # not 64 bit clean in cross-compile
 AC_CHECK_SIZEOF(void *, 4)
 
-CFLAGS='-g -Wall -Wunused -Wmissing-prototypes -Wmissing-declarations -Wstrict-prototypes  -Wmissing-prototypes -Wnested-externs  -Wshadow -Wpointer-arith -Wno-cast-qual -Wcast-align -Wwrite-strings'
+CFLAGS="$CFLAGS -g -Wall -Wunused -Wmissing-prototypes -Wmissing-declarations -Wstrict-prototypes  -Wmissing-prototypes -Wnested-externs  -Wshadow -Wpointer-arith -Wno-cast-qual -Wcast-align -Wwrite-strings"
 
 AC_PATH_PROG(PKG_CONFIG, pkg-config, no)
 if test "x$PKG_CONFIG" = "xno"; then
@@ -280,7 +280,7 @@
 AM_CONDITIONAL(HAVE_XSP, test "x$xsp" = "xyes")
 
 AC_MSG_CHECKING([Whether your Mono is working])
-old_CFLAGS=$cflags
+old_CFLAGS=$CFLAGS
 CFLAGS=$WRAPPER_CFLAGS
 AC_TRY_COMPILE([#include <mono/metadata/mono-debug.h>
 #include <mono/metadata/debug-mono-symfile.h>
openSUSE Build Service is sponsored by