Bug 23762 - java.library.path should default to value of environment variable specified by LTDL_SHLIBPATH_VAR
Summary: java.library.path should default to value of environment variable specified b...
Status: RESOLVED FIXED
Alias: None
Product: gcc
Classification: Unclassified
Component: libgcj (show other bugs)
Version: 4.1.0
: P2 normal
Target Milestone: ---
Assignee: Thomas Fitzsimmons
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2005-09-07 12:33 UTC by Thomas Fitzsimmons
Modified: 2005-09-14 20:15 UTC (History)
2 users (show)

See Also:
Host:
Target:
Build:
Known to work:
Known to fail:
Last reconfirmed: 2005-09-14 20:14:52


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Thomas Fitzsimmons 2005-09-07 12:33:52 UTC
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.
Comment 1 GCC Commits 2005-09-12 23:50:25 UTC
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

Comment 2 Thomas Fitzsimmons 2005-09-14 20:15:11 UTC
Fixed on HEAD.  Closing.