This is the mail archive of the java-patches@gcc.gnu.org mailing list for the Java project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: Patch: java/lang/natRuntime.cc


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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]