<URL: http://bugs.freeciv.org/Ticket/Display.html?id=35785 >
On 12/02/07, Andrew Pantyukhin <[EMAIL PROTECTED]> wrote: > > CPPFLAGS in environment is noticed by configure, > but not included in CPPFLAGS it passes on to > makefiles. Therefore, freeciv has difficulty > using headers in /usr/local/include. CPPFLAGS is overwritten with CFLAGS. This also causes C++ compilations to get C specific flags. Fix attached. - ML
diff -Nurd -X.diff_ignore freeciv/configure.ac freeciv/configure.ac --- freeciv/configure.ac 2007-08-04 18:39:15.000000000 +0300 +++ freeciv/configure.ac 2007-08-05 01:47:24.000000000 +0300 @@ -352,7 +352,7 @@ dnl note this has to match the path installed by po/Makefile if test x"$MINGW32" != "xyes"; then - CPPFLAGS="$CFLAGS -DLOCALEDIR=\"\\\"$localedir\\\"\"" + CPPFLAGS="$CPPFLAGS -DLOCALEDIR=\"\\\"$localedir\\\"\"" else AC_DEFINE_UNQUOTED(LOCALEDIR, "./share/locale", [Locale directory (windows)]) fi
diff -Nurd -X.diff_ignore freeciv/configure.ac freeciv/configure.ac --- freeciv/configure.ac 2007-08-04 04:27:39.000000000 +0300 +++ freeciv/configure.ac 2007-08-05 01:49:55.000000000 +0300 @@ -319,7 +319,7 @@ dnl note this has to match the path installed by po/Makefile if test x"$MINGW32" != "xyes"; then - CPPFLAGS="$CFLAGS -DLOCALEDIR=\"\\\"$datadir/locale\\\"\"" + CPPFLAGS="$CPPFLAGS -DLOCALEDIR=\"\\\"$datadir/locale\\\"\"" else AC_DEFINE_UNQUOTED(LOCALEDIR, "./share/locale", [Locale directory (windows)]) fi
_______________________________________________ Freeciv-dev mailing list [email protected] https://mail.gna.org/listinfo/freeciv-dev
