re PR libgcj/23761 (java.library.path doesn't affect module loading path)

2005-09-08  Thomas Fitzsimmons  <fitzsim@redhat.com>

	PR libgcj/23761
	* include/java-props.h (_Jv_Module_Load_Path): Declare variable.
	* java/lang/natRuntime.cc (init): Call lt_dlsetsearchpath after
	lt_dlinit.
	* gnu/classpath/natSystemProperties.cc (_Jv_Module_Load_Path):
	Define variable.
	(_Jv_SetDLLSearchPath): Do not call lt_dlsetsearchpath.  Set
	_Jv_Module_Load_Path.

From-SVN: r104044
This commit is contained in:
Thomas Fitzsimmons
2005-09-08 21:26:25 +00:00
committed by Thomas Fitzsimmons
parent e014df900d
commit 9ff284256a
4 changed files with 19 additions and 1 deletions
+3 -1
View File
@@ -38,13 +38,15 @@ details. */
#include <java/lang/String.h>
#include <jni.h>
char *_Jv_Module_Load_Path = NULL;
#ifdef USE_LTDL
#include <ltdl.h>
void
_Jv_SetDLLSearchPath (const char *path)
{
lt_dlsetsearchpath (path);
_Jv_Module_Load_Path = strdup (path);
}
#else