Patch: RFA: set LD_LIBRARY_PATH

Andrew Pinski pinskia@physics.uc.edu
Fri Sep 2 01:14:00 GMT 2005


> 
> 
> --=-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).


-- Pinski



More information about the Java-patches mailing list