bug-autoconf
[Top][All Lists]
Advanced

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

Re: AC_CHECK_LIB / AC_SEARCH_LIBS buglet


From: Ralf Wildenhues
Subject: Re: AC_CHECK_LIB / AC_SEARCH_LIBS buglet
Date: Wed, 31 Dec 2008 00:13:22 +0100
User-agent: Mutt/1.5.18 (2008-05-17)

Hello Carson,

thanks for the report.

* Carson Gaspar wrote on Tue, Dec 30, 2008 at 02:24:54PM CET:
> Both AC_CHECK_LIB and AC_SEARCH_LIBS put "-lmylib" before  
> OTHER-LIBRARIES. In practice, this causes configure to try things like:
>
> cc foo.c -lmylib -L/path/to/mypkg/lib ...
>
> On Solaris (and other systems) this is fatal, as it is required to  
> specify -L before any -l args that live in the path specified by -L.

But adding -L paths needed for -lmylib is not the purpose of the
OTHER-LIBRARIES argument of these macros.  That is what $LDFLAGS
is for.  Please use that instead.  OTHER-LIBRARIES is strictly
for library dependencies of mylib.

Cheers,
Ralf




reply via email to

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