From 6c97725b8439d27d9fecd98e38ff73c92457f500 Mon Sep 17 00:00:00 2001 From: "Keith W. Campbell" Date: Wed, 15 May 2024 10:15:14 -0400 Subject: [PATCH] Don't use --enable-compatible-cds-alignment for OpenJ9 builds Signed-off-by: Keith W. Campbell --- sbin/build.sh | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/sbin/build.sh b/sbin/build.sh index 9c9c2a8a8..898566a2f 100755 --- a/sbin/build.sh +++ b/sbin/build.sh @@ -453,7 +453,8 @@ buildingTheRestOfTheConfigParameters() { # For jdk-17+ aarch64 linux, we need to add --enable-compatible-cds-alignment, until upstream # fix for https://bugs.openjdk.org/browse/JDK-8331942 is merged into all jdk-17+ versions - if [ "${BUILD_CONFIG[OPENJDK_FEATURE_NUMBER]}" -ge 17 ] && [ "${BUILD_CONFIG[OS_KERNEL_NAME]}" == "linux" ] && [ "${BUILD_CONFIG[OS_ARCHITECTURE]}" == "aarch64" ]; then + # (but not for OpenJ9 where it's not supported) + if [ "${BUILD_CONFIG[OPENJDK_FEATURE_NUMBER]}" -ge 17 ] && [ "${BUILD_CONFIG[OS_KERNEL_NAME]}" == "linux" ] && [ "${BUILD_CONFIG[OS_ARCHITECTURE]}" == "aarch64" ] && [ "${BUILD_CONFIG[BUILD_VARIANT]}" != "${BUILD_VARIANT_OPENJ9}" ]; then addConfigureArg "--enable-compatible-cds-alignment" "" fi }