develooper Front page | perl.perl5.porters | Postings from April 2006

Re: Question about dynamic libraries on AIX 5.1

Thread Previous | Thread Next
Steven Hirsch
April 2, 2006 03:16
Re: Question about dynamic libraries on AIX 5.1
Message ID:
H.Merijn Brand wrote:

>> the top of the search results!).  AIX does have LD_LIBRARY_PATH - is that
>> related?

> Related yes, but only to where the lib is found, not to when it's loaded.
> LD_LIBRARY_PATH is similar to SHLIB_PATH (HP-UX supports both from the same
> shared library, and each library can tell which to support, and which to
> prefer first just to add to the confusion)
> LD_PRELOAD is to tell each app to preload a specific library, so it is loaded
> before the app starts

AIX supports neither LD_PRELOAD nor LD_LIBRARY_PATH.  'LIBPATH' is 
equivalent to the latter, but there is currently no notion of 
LD_PRELOAD.  You can get the same effect with clever use of the linker 
and binder, but it can be unintuitive to say the least.

Thread Previous | Thread Next Perl Programming lists via nntp and http.
Comments to Ask Bjørn Hansen at | Group listing | About