Complete.Org: Mailing Lists: Archives: freeciv-dev: February 1999:
[Freeciv-Dev] Cygwin Client Build - SM and ICE
Home

[Freeciv-Dev] Cygwin Client Build - SM and ICE

[Top] [All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index] [Thread Index]
To: <freeciv-dev@xxxxxxxxxxxx>
Subject: [Freeciv-Dev] Cygwin Client Build - SM and ICE
From: "Todd Goodman" <tsg1@xxxxxxxxxxxxx>
Date: Mon, 15 Feb 1999 09:16:23 -0500

I had previously reported that the build worked as-is from CVS.

Prior to that I had reported that I was having problems with the
link order of the X libraries in the client build.

I still am.  I believe I had not received fresh CVS sources when I
reported success previously.

In preparation for a cygwin binary build I wiped my whole tree and
pulled everything from CVS and experienced the problem.

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)
             FC_CHECK_X_LIB(Xext, XShapeCombineMask)
             FC_CHECK_X_LIB(Xt, main)
             FC_CHECK_X_LIB(Xmu, main)
        /usr/local/src/freeciv/freeciv> cvs status configure.in
        ===================================================================
        File: configure.in      Status: Needs Merge

           Working revision:    1.37
           Repository revision: 1.38    /home/freeciv/CVS/freeciv/configure.in,v
           Sticky Tag:          (none)
           Sticky Date:         (none)
           Sticky Options:      (none)

        /usr/local/src/freeciv/freeciv>

I don't know automake or autoconf so there's probably a different file
I need to change (aclocal.m4?) but I sure can't find it.

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.

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.

Todd



[Prev in Thread] Current Thread [Next in Thread]