Patch: java/lang/natRuntime.cc

Andreas Tobler toa@pop.agri.ch
Tue Aug 19 17:34:00 GMT 2003


Andrew Haley wrote:

> Michael Koch writes:
>  > -----BEGIN PGP SIGNED MESSAGE-----
>  > Hash: SHA1
>  > 
>  > Am Montag, 18. August 2003 09:17 schrieb Ranjit Mathew:
>  > > > +      char* libraryPath = ::getenv ("LD_LIBRARY_PATH");
>  > >
>  > > Sorry, but I don't think this is portable. For example,
>  > > on Windows, PATH is used to search for DLLs. My memory
>  > > is a bit hazy now, but on AIX it was something like
>  > > LD_LOAD_LIBRARY_PATH.
>  > 
>  > Well, getenv() is used in one other place in this file too. Thats why 
>  > I decided to use this. I can write a patch included the AIX variable 
>  > later today
> 
> If I recall correctly, Darwin uses something different again.  

As Michael wanted me to comment on this:)

Darwin uses for static libraries the LD_LIBRARY_PATH. If it comes to 
dynamic libraries, it is DYLD_LIBRARY_PATH. I hope this is correct.
At least the dyld, the dynamic linker, says so. And my experience.

Andreas



More information about the Java-patches mailing list