aboutsummaryrefslogtreecommitdiff
path: root/java/openjdk11
diff options
context:
space:
mode:
authorPiotr Kubaj <pkubaj@FreeBSD.org>2020-01-15 22:08:04 +0000
committerPiotr Kubaj <pkubaj@FreeBSD.org>2020-01-15 22:08:04 +0000
commit16ba9aabc534b4b6a476a770a6293f5573a76405 (patch)
tree835a338778bd9f0fef3e2ef06ccf66bc045df14b /java/openjdk11
parente60d54d0e189086015678e8700140b61cd35ad5a (diff)
downloadports-16ba9aabc534b4b6a476a770a6293f5573a76405.tar.gz
ports-16ba9aabc534b4b6a476a770a6293f5573a76405.zip
Notes
Diffstat (limited to 'java/openjdk11')
-rw-r--r--java/openjdk11/Makefile3
-rw-r--r--java/openjdk11/files/patch-make_autoconf_flags-cflags.m411
2 files changed, 14 insertions, 0 deletions
diff --git a/java/openjdk11/Makefile b/java/openjdk11/Makefile
index 676578ba1a72..1c0e4a091de6 100644
--- a/java/openjdk11/Makefile
+++ b/java/openjdk11/Makefile
@@ -132,6 +132,9 @@ MAKE_ENV+= USE_CLANG=true
CONFIGURE_ARGS+= --disable-warnings-as-errors \
--disable-dtrace
.endif
+.if defined(PPC_ABI) && ${PPC_ABI} == ELFv2
+CONFIGURE_ARGS+= --disable-precompiled-headers
+.endif
.if ${ARCH} != amd64
CONFIGURE_ARGS+= --enable-aot=no
.endif
diff --git a/java/openjdk11/files/patch-make_autoconf_flags-cflags.m4 b/java/openjdk11/files/patch-make_autoconf_flags-cflags.m4
new file mode 100644
index 000000000000..aede54b34b92
--- /dev/null
+++ b/java/openjdk11/files/patch-make_autoconf_flags-cflags.m4
@@ -0,0 +1,11 @@
+--- make/autoconf/flags-cflags.m4.orig 2020-01-08 09:12:31 UTC
++++ make/autoconf/flags-cflags.m4
+@@ -770,6 +770,8 @@ AC_DEFUN([FLAGS_SETUP_CFLAGS_CPU_DEP],
+ # for all archs except arm and ppc, prevent gcc to omit frame pointer
+ $1_CFLAGS_CPU_JDK="${$1_CFLAGS_CPU_JDK} -fno-omit-frame-pointer"
+ fi
++ elif test "x$OPENJDK_TARGET_OS_ENV" = xbsd.freebsd; then
++ $1_CFLAGS_CPU_JVM="${$1_CFLAGS_CPU_JVM} -DABI_ELFv2 -mcpu=powerpc64 -mtune=power5"
+ fi
+
+ elif test "x$TOOLCHAIN_TYPE" = xsolstudio; then