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


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.


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