Re: [Freeciv-Dev] Silliness in FC_CHECK_X_LIB
[Top] [All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index] [Thread Index]
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
[Freeciv-Dev] ./configure does work on Solaris (was: Silliness in FC_CHECK_X_LIB), Reinier Post, 1998/11/21
|
|