autoconf
[Top][All Lists]
Advanced

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

Re: LD_LIBRARY_PATH does not supersede /usr/lib for AC_CHECK_LIB ?


From: Andreas Schwab
Subject: Re: LD_LIBRARY_PATH does not supersede /usr/lib for AC_CHECK_LIB ?
Date: Thu, 19 Aug 2004 17:19:08 +0200
User-agent: Gnus/5.110002 (No Gnus v0.2) Emacs/21.3.50 (gnu/linux)

Bob Friesenhahn <address@hidden> writes:

> On Thu, 19 Aug 2004, Andreas Schwab wrote:
>
>> Stephan A Suerken <address@hidden> writes:
>>
>>> Afaik, LD_LIBRARY_PATHs, if set, should have precedence over standard
>>> paths.
>>
>> LD_LIBRARY_PATH has no significance to the linker for finding the
>> libraries to be linked in.
>
> This is not a true statement.  Some linkers (e.g. apparently Solaris 9s
> ld') will use LD_LIBRARY_PATH for finding libraries.

GNU ld also uses it, but only for finding implicit dependencies of shared
libraries, and the Solaris linker may be doing the same.  Note that I
wrote "libraries to be linked in" above, which does not include those
dependencies.

Andreas.

-- 
Andreas Schwab, SuSE Labs, address@hidden
SuSE Linux AG, Maxfeldstraße 5, 90409 Nürnberg, Germany
Key fingerprint = 58CA 54C7 6D53 942B 1756  01D3 44D5 214B 8276 4ED5
"And now for something completely different."




reply via email to

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