This is the mail archive of the
java-patches@gcc.gnu.org
mailing list for the Java project.
Re: Patch: RFA: set LD_LIBRARY_PATH
- From: Thomas Fitzsimmons <fitzsim at redhat dot com>
- To: Andrew Pinski <pinskia at physics dot uc dot edu>
- Cc: java-patches at gcc dot gnu dot org
- Date: Thu, 01 Sep 2005 21:40:19 -0400
- Subject: Re: Patch: RFA: set LD_LIBRARY_PATH
- References: <200509020114.j821EACj025924@earth.phy.uc.edu>
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