aboutsummaryrefslogtreecommitdiffstats
path: root/community/openjdk8/icedtea-jdk-fix-libjvm-load.patch
diff options
context:
space:
mode:
Diffstat (limited to 'community/openjdk8/icedtea-jdk-fix-libjvm-load.patch')
-rw-r--r--community/openjdk8/icedtea-jdk-fix-libjvm-load.patch14
1 files changed, 14 insertions, 0 deletions
diff --git a/community/openjdk8/icedtea-jdk-fix-libjvm-load.patch b/community/openjdk8/icedtea-jdk-fix-libjvm-load.patch
new file mode 100644
index 0000000000..d0a090ea57
--- /dev/null
+++ b/community/openjdk8/icedtea-jdk-fix-libjvm-load.patch
@@ -0,0 +1,14 @@
+musl needs LD_LIBRARY_PATH set because when .so is opened with dlopen(/abs/path)
+it does not qualify for providing symbols for NEEDED dependency.
+
+--- openjdk.orig/jdk/src/solaris/bin/java_md_solinux.c
++++ openjdk/jdk/src/solaris/bin/java_md_solinux.c
+@@ -291,6 +291,8 @@
+ char *dmllp = NULL;
+ char *p; /* a utility pointer */
+
++ return JNI_TRUE;
++
+ #ifdef AIX
+ /* We always have to set the LIBPATH on AIX because ld doesn't support $ORIGIN. */
+ return JNI_TRUE;