[Freeciv-Dev] more cygwin build issues
[Top] [All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index] [Thread Index]
James Wilson writes:
> ok, here's what happened when I tried --enable-client=win32.
>
> -- "export CC="gcc -mno-cygwin"; ./configure --enable-client=win32; make"
> builds the client fine; however, the civserver thus built crashes on
> startup, apparently while trying to load wsock32.dll (gdb gets really
> freaked out so it's not clear what's going wrong).
>
Perhaps I should run servers build by gcc -mno-cygwin more often. I
usally cross compile the stuff. And when I compile with normal gcc
-mno-cygwin, I usually only run the client. And the server compiles
always happily.
That's evil.
You can fix the problem if you don't link against -lm. -lm seems to
conflict with wsock32.dll (It adds cygwin1.dll!) on recent versions of
cygwin. It has worked with earlier versions.
Greetings
Andreas Kemnade
--- /home/andi/freeciv/configure.in Wed Sep 19 08:26:12 2001
+++ configure.in Sun Nov 4 12:13:58 2001
@@ -451,9 +451,11 @@
fi
fi
fi
-
- AC_CHECK_LIB(m, pow, SERVER_LIBS="$SERVER_LIBS -lm",
+ AC_CHECK_FUNC(pow)
+ if test $ac_cv_func_pow = no; then
+ AC_CHECK_LIB(m, pow, SERVER_LIBS="$SERVER_LIBS -lm",
AC_MSG_ERROR(Did not find math lib!))
+ fi
fi
AC_SUBST(SERVER_LIBS)
[Freeciv-Dev] Re: building under cygwin, Reinier Post, 2001/11/03
[Freeciv-Dev] Re: building under cygwin, Reinier Post, 2001/11/03
|
|