If java.library.path was not specified on the command line its value should default to the contents of LD_LIBRARY_PATH on GNU/Linux systems or LTDL_SHLIBPATH_VAR generally.
Subject: Bug 23762 CVSROOT: /cvs/gcc Module name: gcc Changes by: fitzsim@gcc.gnu.org 2005-09-12 23:50:02 Modified files: libjava : ChangeLog Makefile.in aclocal.m4 configure configure.ac libjava/gcj : Makefile.in libjava/gnu/classpath: natSystemProperties.cc libjava/include: Makefile.in config.h.in libjava/testsuite: Makefile.in Added files: libjava : shlibpath.m4 Log message: 2005-09-12 Thomas Fitzsimmons <fitzsim@redhat.com> PR libgcj/23762 * shlibpath.m4: New file. * 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. Patches: http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/libjava/shlibpath.m4.diff?cvsroot=gcc&r1=NONE&r2=1.1 http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/libjava/ChangeLog.diff?cvsroot=gcc&r1=1.3737&r2=1.3738 http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/libjava/Makefile.in.diff?cvsroot=gcc&r1=1.534&r2=1.535 http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/libjava/aclocal.m4.diff?cvsroot=gcc&r1=1.64&r2=1.65 http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/libjava/configure.diff?cvsroot=gcc&r1=1.278&r2=1.279 http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/libjava/configure.ac.diff?cvsroot=gcc&r1=1.39&r2=1.40 http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/libjava/gcj/Makefile.in.diff?cvsroot=gcc&r1=1.75&r2=1.76 http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/libjava/gnu/classpath/natSystemProperties.cc.diff?cvsroot=gcc&r1=1.2&r2=1.3 http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/libjava/include/Makefile.in.diff?cvsroot=gcc&r1=1.79&r2=1.80 http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/libjava/include/config.h.in.diff?cvsroot=gcc&r1=1.61&r2=1.62 http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/libjava/testsuite/Makefile.in.diff?cvsroot=gcc&r1=1.87&r2=1.88
Fixed on HEAD. Closing.