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: RFA: set LD_LIBRARY_PATH


On Thu, 2005-09-01 at 21:14 -0400, Andrew Pinski wrote:
> > 
> > 
> > --=-s7o6SrJeLDGqLVrLyaWE
> > Content-Type: text/plain
> > Content-Transfer-Encoding: 7bit
> > 
> > Hi,
> > 
> > Sun's JRE includes $JAVA_HOME/lib/<arch> in its LD_LIBRARY_PATH so that
> > users don't need to specify LD_LIBRARY_PATH manually.  This patch makes
> > libgcj do the same when the --with-java-home configure option is
> > specified.
> > 
> > OK for mainline?
> Except for the fact there are more than LD_LIBRARY_PATH on some targets.
> For an example there is DYLD_LIBRARY_PATH on Darwin, some other targets
> have some of the following:
> LD_RUN_PATH
> SHLIB_PATH
> LD_LIBRARYN32_PATH
> LD_LIBRARY64_PATH
> LD_LIBRARY_PATH_32
> LD_LIBRARY_PATH_64
> 
> (found by looking at testsuite/lib/target-libpath.exp).

Would it be all right if we generalized this on an as-needed basis --
that is, as people on other platforms start using --with-java-home?  I
can't test all those different environments myself and I imagine the
"porting" work will be quite trivial for each new platform.

Tom



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