Patch: java/lang/natRuntime.cc
Andrew Haley
aph@redhat.com
Mon Aug 18 10:00:00 GMT 2003
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.
Well, I have to ask what this is for. Any gcj application that uses
this will be fragile and have reduced portability. The shared library
loader searches its path using its own algorithms. Why does a gcj
program need to know this stuff as well?
Andrew.
More information about the Java-patches
mailing list