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:
committed by
Thomas Fitzsimmons
parent
e014df900d
commit
9ff284256a
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user