Re: [Freeciv-Dev] Cygwin Client Build - SM and ICE
[Top] [All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index] [Thread Index]
Todd Goodman wrote:
> I've worked around the problem by patching configure.in as follows:
>
> /usr/local/src/freeciv/freeciv> cvs diff configure.in
> Index: configure.in
> ===================================================================
> RCS file: /home/freeciv/CVS/freeciv/configure.in,v
> retrieving revision 1.37
> diff -u -r1.37 configure.in
> --- configure.in 1999/01/30 02:57:49 1.37
> +++ configure.in 1999/02/15 14:09:00
> @@ -140,6 +140,8 @@
> dnl Checks for X libs:
> FC_CHECK_X_LIB(X11, XOpenDisplay, ,
> AC_MSG_ERROR(Need X11; perhaps try/adjust --x-libraries))
> + FC_CHECK_X_LIB(ICE, main)
> + FC_CHECK_X_LIB(SM, main)
> The Makefile is still pretty ugly as I used to see -lSM and -lICE defined
> in X_LIBS (at the beginning of the lib list) and defined in X_PRE_LIBS
> (not used anymore). This change adds them to the end of X_EXTRA_LIBS right
> before the -lX11.
Ok, so this is another library link order problem.
The above patch isn't the "correct" fix, since as you say
they already appear, just in the wrong place. (We currently
combine X_PRE_LIBS into X_LIBS, iirc.) So the above will
include them twice, which could cause problems on some
other systems? :-(
> The problem was that some of the other libs (-lXt I think) have dependencies
> on SM and ICE and the cygwin ld is single pass by default.
So calling them "X_PRE_LIBS" make sense. But then we have the IRIX
problem that -lXaw is supposed to come _before_ -lSM -lICE ??
Sigh :-(
-- David
|
|