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.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@104044
138bc75d-0d04-0410-961f-
82ee72b054a4
+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.
+
2005-09-06 Tom Tromey <tromey@redhat.com>
PR libgcj/23739:
#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
// Properties taken from the user's environment.
extern property_pair *_Jv_Environment_Properties;
+// Module load path.
+extern char *_Jv_Module_Load_Path;
+
#endif
{
#ifdef USE_LTDL
lt_dlinit ();
+ // Set module load path.
+ lt_dlsetsearchpath (_Jv_Module_Load_Path);
// Make sure self is opened.
lt_dlopen (NULL);
#endif