[Freeciv-Dev] Re: build error under mac os x (PR#894)
[Top] [All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index] [Thread Index]
On Tuesday, August 14, 2001, at 02:33 AM, Gaute B Strokkenes wrote:
On Mon, 13 Aug 2001, mxcantor@xxxxxxxxxxxxx wrote:
Full_Name: Max Cantor
Version: 1.11.4-1.12
Distribution: Built from source
Client: Both (or N/A)
OS: Mac OS X (Darwin-ppc)
Submission from: (NULL) (165.247.91.195)
The gcc supplied with apple-darwin-ppc does not support variadic
macro arguments. Therefore, the cpp always croaks when it gets to
freelog macro in the log.c or log.h file. Basically, it has to be
set to use the functional, slower, non-macro form of freelog
provided for non-gcc compilers. I'm not sure how to set this
automatically, so I'm just reporting it.
This came up a while ago. The best way to fix it is to disable the
Apple-specific CPP when compiling Freeciv. This is no great loss
since it will not speed up the compilation of programs that don't use
the OS X APIs anyway. Unfortunately, no one were able to provide
clear instructions as to how to do this from a configure script.
Even better, Apple could fix their CPP...
I hear Apple's working on it, but they've got about 4 years of GNU-CC
patches to merge in from where their CPP branched. I don't envy the
task. Anyhow, this patch makes my nice fresh 1.12.0 build run cleanly.
[insert clever signoff here]
Brian Olson http://bolson.org/
--- configure.in.orig Fri Aug 17 01:54:12 2001
+++ configure.in Fri Aug 17 01:58:17 2001
@@ -186,6 +186,11 @@
AC_SUBST(ARFLAGS)
fi
+dnl MacOS X or Darwin specifics
+if test x`$UNAME -s` = xDarwin ; then
+ CFLAGS="$CFLAGS -traditional-cpp"
+fi
+
dnl Windows-specific settings
AC_MINGW32
if test x"$MINGW32" = "xyes"; then
|
|