summaryrefslogtreecommitdiff
path: root/java/openjdk18
diff options
context:
space:
mode:
authorDimitry Andric <dim@FreeBSD.org>2024-08-29 09:46:12 +0200
committerDimitry Andric <dim@FreeBSD.org>2024-09-15 13:36:13 +0200
commit3378cc494de65725a36e8ff5aaa205273521ba52 (patch)
tree281e7278b5512b362cbfd9e0f5d392b6b5cb4c7a /java/openjdk18
parentsysutils/coreutils: Fix GMP option (diff)
java/openjdk8 java/openjdk11 java/openjdk17 java/openjdk18 java/openjdk19 java/openjdk20 java/openjdk21 java/openjdk22: disable warnings as errors
Generally disable warnings-as-errors for all openjdk ports, removing all the conditionals we have now for particular architectures and/or compilers. It does not make sense to have this on by default, unless you are an upstream maintainer. PR: 281188 Approved by: maintainer timeout (2 weeks) MFH: 2024Q3
Diffstat (limited to 'java/openjdk18')
-rw-r--r--java/openjdk18/Makefile4
1 files changed, 1 insertions, 3 deletions
diff --git a/java/openjdk18/Makefile b/java/openjdk18/Makefile
index cf09ffb96ab2..f2afc74762f9 100644
--- a/java/openjdk18/Makefile
+++ b/java/openjdk18/Makefile
@@ -141,6 +141,7 @@ JDK_BUILD_JVM= server
MAKE_ENV+= --with-toolchain-type=${COMPILER_TYPE}
CONFIGURE_ARGS+= --with-toolchain-type=${COMPILER_TYPE}
+CONFIGURE_ARGS+= --disable-warnings-as-errors
.if ${COMPILER_TYPE} == gcc
USE_GCC= yes
@@ -156,9 +157,6 @@ CONFIGURE_ARGS+= --with-extra-cflags="${EXTRA_CFLAGS}"
CONFIGURE_ARGS+= --with-extra-cxxflags="${EXTRA_CFLAGS}"
.endif
-.if ${ARCH} == aarch64 || ${ARCH:Mpowerpc64*}
-CONFIGURE_ARGS+= --disable-warnings-as-errors
-.endif
.if ${ARCH} == aarch64
CONFIGURE_ARGS+= --with-boot-jdk-jvmargs=-XX:-UseCompressedClassPointers --disable-dtrace
MAKE_ENV+= JAVA_TOOL_OPTIONS="-XX:-UseCompressedClassPointers"