Patch: RFA: Set default value for java.library.path
Thomas Fitzsimmons
fitzsim@redhat.com
Wed Sep 7 15:24:00 GMT 2005
Hi,
java.library.path should default to the contents of the shared library
path environment variable (LD_LIBRARY_PATH on GNU/Linux). To make this
cross-platform I've used libltdl's AC_LTDL_SHLIBPATH macro to define
LTDL_SHLIBPATH_VAR. With this patch the aclocal call used in
gcc/libjava needs one extra -I argument, becoming:
aclocal -I . -I .. -I ../config -I ./libltdl
The order of -I arguments to aclocal is important; misplacing
-I ./libltdl gives strange results.
OK for mainline?
Tom
2005-09-07 Thomas Fitzsimmons <fitzsim@redhat.com>
PR libgcj/23762
* configure.ac: If libltdl is being used call AC_LTDL_SHLIBPATH
macro.
* gnu/classpath/natSystemProperties.cc (insertSystemProperties)
[USE_LTDL]: If it was not defined with -D set java.library.path to
the value of LTDL_SHLIBPATH_VAR.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: libgcj-default-java-lib-path.patch
Type: text/x-patch
Size: 1650 bytes
Desc: not available
URL: <http://gcc.gnu.org/pipermail/java-patches/attachments/20050907/003869a5/attachment.bin>
More information about the Java-patches
mailing list