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

The attached patch fixes a bug which would cause the passed CFLAGS to be
overwritten when GCC is used.

If you wish to contact me, please email me at [EMAIL PROTECTED]

--- freeciv-2.1.0-beta4.old/configure.ac        2007-03-21 03:23:13.000000000 
+0100
+++ freeciv-2.1.0-beta4/configure.ac    2007-04-24 19:34:33.000000000 +0200
@@ -293,8 +293,8 @@ EXTRA_GCC_DEBUG_CXXFLAGS=""
 if test -n "$GCC"; then
    EXTRA_GCC_DEBUG_CFLAGS="$CFLAGS"
    EXTRA_GCC_DEBUG_CXXFLAGS="$CXXFLAGS"
-   CFLAGS="-Wall -Wpointer-arith -Wcast-align -Wmissing-prototypes 
-Wmissing-declarations"
-   CXXFLAGS="-Wall -Wpointer-arith -Wcast-align -Wmissing-prototypes"
+   CFLAGS="$CFLAGS -Wall -Wpointer-arith -Wcast-align -Wmissing-prototypes 
-Wmissing-declarations"
+   CXXFLAGS="$CXXFLAGS -Wall -Wpointer-arith -Wcast-align -Wmissing-prototypes"
 fi
 
 FC_DEBUG
_______________________________________________
Freeciv-dev mailing list
Freeciv-dev@gna.org
https://mail.gna.org/listinfo/freeciv-dev

Reply via email to