summaryrefslogtreecommitdiffstats
path: root/libjava/gnu
diff options
context:
space:
mode:
Diffstat (limited to 'libjava/gnu')
-rw-r--r--libjava/gnu/classpath/natSystemProperties.cc11
1 files changed, 9 insertions, 2 deletions
diff --git a/libjava/gnu/classpath/natSystemProperties.cc b/libjava/gnu/classpath/natSystemProperties.cc
index 7e00595c6d7..5d230254d9b 100644
--- a/libjava/gnu/classpath/natSystemProperties.cc
+++ b/libjava/gnu/classpath/natSystemProperties.cc
@@ -352,9 +352,16 @@ gnu::classpath::SystemProperties::insertSystemProperties (java::util::Properties
else
{
// Set a value for user code to see.
- // FIXME: JDK sets this to the actual path used, including
- // LD_LIBRARY_PATH, etc.
+#ifdef USE_LTDL
+ char *libpath = getenv (LTDL_SHLIBPATH_VAR);
+ if (libpath)
+ newprops->put(JvNewStringLatin1 ("java.library.path"),
+ JvNewStringLatin1 (libpath));
+ else
+ SET ("java.library.path", "");
+#else
SET ("java.library.path", "");
+#endif
}
// If java.class.path is still not set then set it according to the
OpenPOWER on IntegriCloud