summaryrefslogtreecommitdiff
path: root/java/openjdk8/files/patch-hotspot_make_bsd_makefiles_ppc64.make
diff options
context:
space:
mode:
authorPiotr Kubaj <pkubaj@FreeBSD.org>2020-12-03 23:39:47 +0000
committerPiotr Kubaj <pkubaj@FreeBSD.org>2020-12-03 23:39:47 +0000
commit4d2bb2699ba6d086e3ec9a0cb14e07c628ff4659 (patch)
treec979ba347862e9a964eebf59999ba37c2ce2cff1 /java/openjdk8/files/patch-hotspot_make_bsd_makefiles_ppc64.make
parentlang/go: Update to 1.15.6 (diff)
java/openjdk8: add support for powerpc64le
powerpc64le needs --disable-jfr and USE_PRECOMPILED_HEADER=0 - same as powerpc64 elfv2. Clang refuses to build little-endian binaries for power7, this needs to be bumped to power8 (this is a bug in openjdk, POWER7 is not LE-compatible). -minsert-sched-nops=regroup_exact -mno-multiple -mno-string are not supported by clang and need to be removed. FreeBSD uses sys/endian.h instead of byteswap.h and bswap{16,32,64} instead of bswap_{16,32,64}. PR: 251247 Approved by: java (maintainer timeout)
Diffstat (limited to 'java/openjdk8/files/patch-hotspot_make_bsd_makefiles_ppc64.make')
-rw-r--r--java/openjdk8/files/patch-hotspot_make_bsd_makefiles_ppc64.make9
1 files changed, 9 insertions, 0 deletions
diff --git a/java/openjdk8/files/patch-hotspot_make_bsd_makefiles_ppc64.make b/java/openjdk8/files/patch-hotspot_make_bsd_makefiles_ppc64.make
new file mode 100644
index 000000000000..023fb10fd71b
--- /dev/null
+++ b/java/openjdk8/files/patch-hotspot_make_bsd_makefiles_ppc64.make
@@ -0,0 +1,9 @@
+--- hotspot/make/bsd/makefiles/ppc64.make.orig 2020-11-18 23:45:09 UTC
++++ hotspot/make/bsd/makefiles/ppc64.make
+@@ -47,5 +47,5 @@ else
+ CFLAGS += -DVM_LITTLE_ENDIAN -DABI_ELFv2
+
+ # Use Power8, this is the first CPU to support PPC64 LE with ELFv2 ABI.
+- CFLAGS += -mcpu=power7 -mtune=power8 -minsert-sched-nops=regroup_exact -mno-multiple -mno-string
++ CFLAGS += -mcpu=power8 -mtune=power8
+ endif