summaryrefslogtreecommitdiff
path: root/build-support/java14-openjdk/jdk14u-jdk-14.0.2+12-gcc10-default-no-fcommon.patch
diff options
context:
space:
mode:
authorAndreas Baumann <mail@andreasbaumann.cc>2021-05-20 07:28:57 +0200
committerAndreas Baumann <mail@andreasbaumann.cc>2021-05-20 07:28:57 +0200
commitfc4d59185e718f434992d15baadea301956a1680 (patch)
treec751dc6032b75a9a6e45cb389ed3056e97b83d6f /build-support/java14-openjdk/jdk14u-jdk-14.0.2+12-gcc10-default-no-fcommon.patch
parent5792e2a9df8894daf0b95dc65a4fa6c43e19b96c (diff)
downloadpackages-fc4d59185e718f434992d15baadea301956a1680.tar.xz
added java14-openjdk to build-support
Diffstat (limited to 'build-support/java14-openjdk/jdk14u-jdk-14.0.2+12-gcc10-default-no-fcommon.patch')
-rw-r--r--build-support/java14-openjdk/jdk14u-jdk-14.0.2+12-gcc10-default-no-fcommon.patch86
1 files changed, 86 insertions, 0 deletions
diff --git a/build-support/java14-openjdk/jdk14u-jdk-14.0.2+12-gcc10-default-no-fcommon.patch b/build-support/java14-openjdk/jdk14u-jdk-14.0.2+12-gcc10-default-no-fcommon.patch
new file mode 100644
index 00000000..ac08a877
--- /dev/null
+++ b/build-support/java14-openjdk/jdk14u-jdk-14.0.2+12-gcc10-default-no-fcommon.patch
@@ -0,0 +1,86 @@
+diff -rauN jdk14u-jdk-14.0.2+12/src/java.base/unix/native/libjava/childproc.c jdk14u-jdk-14.0.2+12-gcc10-default-no-fcommon-patch/src/java.base/unix/native/libjava/childproc.c
+--- jdk14u-jdk-14.0.2+12/src/java.base/unix/native/libjava/childproc.c 2020-07-08 22:01:33.000000000 +0200
++++ jdk14u-jdk-14.0.2+12-gcc10-default-no-fcommon-patch/src/java.base/unix/native/libjava/childproc.c 2021-05-20 07:06:02.032844761 +0200
+@@ -34,6 +34,7 @@
+
+ #include "childproc.h"
+
++const char * const *parentPathv;
+
+ ssize_t
+ restartableWrite(int fd, const void *buf, size_t count)
+diff -rauN jdk14u-jdk-14.0.2+12/src/java.base/unix/native/libjava/childproc.h jdk14u-jdk-14.0.2+12-gcc10-default-no-fcommon-patch/src/java.base/unix/native/libjava/childproc.h
+--- jdk14u-jdk-14.0.2+12/src/java.base/unix/native/libjava/childproc.h 2020-07-08 22:01:33.000000000 +0200
++++ jdk14u-jdk-14.0.2+12-gcc10-default-no-fcommon-patch/src/java.base/unix/native/libjava/childproc.h 2021-05-20 07:06:02.032844761 +0200
+@@ -126,7 +126,7 @@
+ * The cached and split version of the JDK's effective PATH.
+ * (We don't support putenv("PATH=...") in native code)
+ */
+-const char * const *parentPathv;
++extern const char * const *parentPathv;
+
+ ssize_t restartableWrite(int fd, const void *buf, size_t count);
+ int restartableDup2(int fd_from, int fd_to);
+diff -rauN jdk14u-jdk-14.0.2+12/src/java.security.jgss/share/native/libj2gss/NativeFunc.c jdk14u-jdk-14.0.2+12-gcc10-default-no-fcommon-patch/src/java.security.jgss/share/native/libj2gss/NativeFunc.c
+--- jdk14u-jdk-14.0.2+12/src/java.security.jgss/share/native/libj2gss/NativeFunc.c 2020-07-08 22:01:33.000000000 +0200
++++ jdk14u-jdk-14.0.2+12-gcc10-default-no-fcommon-patch/src/java.security.jgss/share/native/libj2gss/NativeFunc.c 2021-05-20 07:06:02.099511592 +0200
+@@ -27,6 +27,9 @@
+ #include <stdlib.h>
+ #include "NativeFunc.h"
+
++/* global GSS function table */
++GSS_FUNCTION_TABLE_PTR ftab;
++
+ /* standard GSS method names (ordering is from mapfile) */
+ static const char RELEASE_NAME[] = "gss_release_name";
+ static const char IMPORT_NAME[] = "gss_import_name";
+diff -rauN jdk14u-jdk-14.0.2+12/src/java.security.jgss/share/native/libj2gss/NativeFunc.h jdk14u-jdk-14.0.2+12-gcc10-default-no-fcommon-patch/src/java.security.jgss/share/native/libj2gss/NativeFunc.h
+--- jdk14u-jdk-14.0.2+12/src/java.security.jgss/share/native/libj2gss/NativeFunc.h 2020-07-08 22:01:33.000000000 +0200
++++ jdk14u-jdk-14.0.2+12-gcc10-default-no-fcommon-patch/src/java.security.jgss/share/native/libj2gss/NativeFunc.h 2021-05-20 07:06:02.162845082 +0200
+@@ -277,6 +277,6 @@
+ typedef GSS_FUNCTION_TABLE *GSS_FUNCTION_TABLE_PTR;
+
+ /* global GSS function table */
+-GSS_FUNCTION_TABLE_PTR ftab;
++extern GSS_FUNCTION_TABLE_PTR ftab;
+
+ #endif
+diff -rauN jdk14u-jdk-14.0.2+12/src/jdk.sctp/unix/native/libsctp/Sctp.h jdk14u-jdk-14.0.2+12-gcc10-default-no-fcommon-patch/src/jdk.sctp/unix/native/libsctp/Sctp.h
+--- jdk14u-jdk-14.0.2+12/src/jdk.sctp/unix/native/libsctp/Sctp.h 2020-07-08 22:01:33.000000000 +0200
++++ jdk14u-jdk-14.0.2+12-gcc10-default-no-fcommon-patch/src/jdk.sctp/unix/native/libsctp/Sctp.h 2021-05-20 07:06:02.189511815 +0200
+@@ -322,12 +322,12 @@
+
+ #endif /* __linux__ */
+
+-sctp_getladdrs_func* nio_sctp_getladdrs;
+-sctp_freeladdrs_func* nio_sctp_freeladdrs;
+-sctp_getpaddrs_func* nio_sctp_getpaddrs;
+-sctp_freepaddrs_func* nio_sctp_freepaddrs;
+-sctp_bindx_func* nio_sctp_bindx;
+-sctp_peeloff_func* nio_sctp_peeloff;
++extern sctp_getladdrs_func* nio_sctp_getladdrs;
++extern sctp_freeladdrs_func* nio_sctp_freeladdrs;
++extern sctp_getpaddrs_func* nio_sctp_getpaddrs;
++extern sctp_freepaddrs_func* nio_sctp_freepaddrs;
++extern sctp_bindx_func* nio_sctp_bindx;
++extern sctp_peeloff_func* nio_sctp_peeloff;
+
+ jboolean loadSocketExtensionFuncs(JNIEnv* env);
+
+diff -rauN jdk14u-jdk-14.0.2+12/src/jdk.sctp/unix/native/libsctp/SctpNet.c jdk14u-jdk-14.0.2+12-gcc10-default-no-fcommon-patch/src/jdk.sctp/unix/native/libsctp/SctpNet.c
+--- jdk14u-jdk-14.0.2+12/src/jdk.sctp/unix/native/libsctp/SctpNet.c 2020-07-08 22:01:33.000000000 +0200
++++ jdk14u-jdk-14.0.2+12-gcc10-default-no-fcommon-patch/src/jdk.sctp/unix/native/libsctp/SctpNet.c 2021-05-20 07:06:02.212845206 +0200
+@@ -37,6 +37,13 @@
+ #include "sun_nio_ch_sctp_SctpNet.h"
+ #include "sun_nio_ch_sctp_SctpStdSocketOption.h"
+
++sctp_getladdrs_func* nio_sctp_getladdrs;
++sctp_freeladdrs_func* nio_sctp_freeladdrs;
++sctp_getpaddrs_func* nio_sctp_getpaddrs;
++sctp_freepaddrs_func* nio_sctp_freepaddrs;
++sctp_bindx_func* nio_sctp_bindx;
++sctp_peeloff_func* nio_sctp_peeloff;
++
+ static jclass isaCls = 0;
+ static jmethodID isaCtrID = 0;
+