autoconf
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: AC_SEARCH_LIBS and two programs


From: Ralf Wildenhues
Subject: Re: AC_SEARCH_LIBS and two programs
Date: Tue, 3 Apr 2007 20:41:44 +0200
User-agent: Mutt/1.5.13 (2006-08-11)

* Andrey Simonenko wrote on Tue, Apr 03, 2007 at 04:17:45PM CEST:
> On Mon, Apr 02, 2007 at 09:15:05AM +0200, Ralf Wildenhues wrote:
> > 
> > Well, I assume the -lz parts then come from a different part of the
> > original code not shown in the example; optimizing that should be done
> > independently of the issue presented here.
> 
> The configure invocation string was given in the original letter:
> 
> % env LIBS=-lz ./configure

Oops.  At times I tend to scan bug reports a bit less thorough than
I should.

A side note to the above: Please instead use (and teach your users to
use)
  ./configure LIBS=-lz

because that way, config.status can remember that you set this manually.
In case a configure recheck is triggered from your build system, that
setting will be retained then, and also `./config.status --version'
will tell you about it (which is a nice help for people that tend to
forget quickly).

> As a side effect the same library can be specified several times
> for each program: like "-lcoolmathlib -lcoolmathlib -lcoolmathlib",
> if several AC_SEARCH_LIBS() are used.  I do not know if this can
> be a problem for some linker.

No, I've never heard of a problem with that.

Cheers,
Ralf




reply via email to

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