Complete.Org: Mailing Lists: Archives: freeciv-dev: November 1998:
Re: [Freeciv-Dev] Silliness in FC_CHECK_X_LIB
Home

Re: [Freeciv-Dev] Silliness in FC_CHECK_X_LIB

[Top] [All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index] [Thread Index]
To: freeciv-dev@xxxxxxxxxxx
Subject: Re: [Freeciv-Dev] Silliness in FC_CHECK_X_LIB
From: David Pfitzner <dwp@xxxxxxxxxxxxxx>
Date: Mon, 23 Nov 1998 11:05:31 +1100

Greg Wooledge wrote:
> 
> David Pfitzner (dwp@xxxxxxxxxxxxxx) wrote:
> 
> > I think you're referring to the "-L/usr/X11R6/lib" in X_LIBS and the fact
> > that -lICE and -lSM are in that directory?
> > I think thats not a problem, because I think the order of the "-L" with 
> > respect to the "-l" options doesn't matter.  The "-L" just globally 
> > modifies 
> > the search path to use to find libs.  Yes/No?
> 
> Under GNU ld, what you say is true -- the linker is smart enough to scan
> the whole argument list before it complains about missing libraries or
> missing symbols.  Under traditional Unix "ld"s, though, this is not the
> case.  The order of the arguments to a non-GNU ld is *vitally* important.

Hmm, it appears you're right; in "man ld" under Solaris, of -L, it says:

%  This  option  is useful only if it precedes the -l options to 
%  which  it applies  on  the  command line.

:-(

> > Otherwise AC_PATH_XTRA would seem (even more) broken.
> 
> Unless I'm missing something, I think it is.  Perhaps, though, the things
> that end up in X_LIBS and X_PRE_LIBS actually make more sense on other
> systems where they need to make sense...?

I wondered about that too, but I'm not overly hopeful...

-- David


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