<URL: http://bugs.freeciv.org/Ticket/Display.html?id=40287 >

 Updates to debug.m4 were ignored from recent configure fix commit.

 Will commit immediately after testing.


 - ML

diff -Nurd -X.diff_ignore freeciv/m4/debug.m4 freeciv/m4/debug.m4
--- freeciv/m4/debug.m4	2007-03-05 19:13:41.000000000 +0200
+++ freeciv/m4/debug.m4	2008-06-17 20:53:58.000000000 +0300
@@ -10,12 +10,14 @@
 
 dnl -g is added by AC_PROG_CC if the compiler understands it
 if test "x$enable_debug" = "xyes"; then
-  AC_DEFINE(DEBUG, 1, [Define if you want extra debugging.])
-  EXTRA_GCC_DEBUG_CFLAGS="$EXTRA_GCC_DEBUG_CFLAGS -Werror"
+  AC_DEFINE([DEBUG], [1], [Extra debugging support])
+  FC_C_FLAGS([-Werror], [], [EXTRA_DEBUG_CFLAGS])
+  FC_CXX_FLAGS([-Werror], [], [EXTRA_DEBUG_CXXFLAGS])
 else
   if test "x$enable_debug" = "xno"; then
-    AC_DEFINE(NDEBUG, 1, [Define if you want no debug support.])
-    EXTRA_GCC_DEBUG_CFLAGS="-O3 -fomit-frame-pointer"
+    AC_DEFINE([NDEBUG], [1], [No debugging support at all])
+    FC_C_FLAGS([-O3 -fomit-frame-pointer], [], [EXTRA_DEBUG_CFLAGS])
+    FC_CXX_FLAGS([-O3 -fomit-frame-pointer], [], [EXTRA_DEBUG_CXXFLAGS])
   fi
 fi
 ])
_______________________________________________
Freeciv-dev mailing list
Freeciv-dev@gna.org
https://mail.gna.org/listinfo/freeciv-dev

Reply via email to