aboutsummaryrefslogtreecommitdiff
path: root/libjava/gnu
diff options
context:
space:
mode:
authorThomas Fitzsimmons <fitzsim@redhat.com>2005-09-08 21:26:25 +0000
committerThomas Fitzsimmons <fitzsim@gcc.gnu.org>2005-09-08 21:26:25 +0000
commit9ff284256a499582521b987c242e0664de1126fb (patch)
tree23efeaa3b51fe2f4b34adcdfb70e455d8e516974 /libjava/gnu
parente014df900da32a8b5f828ea42ffbeb91f0564682 (diff)
downloadgcc-9ff284256a499582521b987c242e0664de1126fb.zip
gcc-9ff284256a499582521b987c242e0664de1126fb.tar.gz
gcc-9ff284256a499582521b987c242e0664de1126fb.tar.bz2
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
Diffstat (limited to 'libjava/gnu')
-rw-r--r--libjava/gnu/classpath/natSystemProperties.cc4
1 files changed, 3 insertions, 1 deletions
diff --git a/libjava/gnu/classpath/natSystemProperties.cc b/libjava/gnu/classpath/natSystemProperties.cc
index d4f6109..7e00595 100644
--- a/libjava/gnu/classpath/natSystemProperties.cc
+++ b/libjava/gnu/classpath/natSystemProperties.cc
@@ -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