Patch: RFA: set LD_LIBRARY_PATH
Thomas Fitzsimmons
fitzsim@redhat.com
Wed Sep 7 13:20:00 GMT 2005
On Thu, 2005-09-01 at 21:08 -0400, Thomas Fitzsimmons wrote:
> 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.
It turns out that Sun's java command handles this in a strange way; it
sets LD_LIBRARY_PATH then re-exec's itself. I'm going to relocate the
LD_LIBRARY_PATH setting code in this patch to a "java" wrapper binary in
java-gcj-compat that exec's gij.
While testing this I found two more java.library.path bugs:
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=23761
and
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=23762
I'll be submitting fixes for these today.
Tom
>
> OK for mainline?
>
> Tom
>
> 2005-09-01 Thomas Fitzsimmons <fitzsim@redhat.com>
>
> PR libgcj/21741
> * configure.ac (JAVA_HOME_SET): Define when --with-java-home is
> specified.
> * configure: Regenerate.
> * gnu/classpath/natSystemProperties.cc (insertSystemProperties)
> [JAVA_HOME_SET]: Prepend JAVA_HOME/lib/arch to LD_LIBRARY_PATH.
> Set java.library.path to value of LD_LIBRARY_PATH if it is set.
> * include/config.h.in: Regenerate.
>
More information about the Java-patches
mailing list