Skip to content

Instantly share code, notes, and snippets.

@bmarwell
Created August 11, 2022 19:33
Show Gist options
  • Save bmarwell/a1f36810f9e9ea6d6f923f8ddbb998e0 to your computer and use it in GitHub Desktop.
Save bmarwell/a1f36810f9e9ea6d6f923f8ddbb998e0 to your computer and use it in GitHub Desktop.
openj9 build patch
diff --git a/closed/autoconf/custom-hook.m4 b/closed/autoconf/custom-hook.m4
index 774049757..95abbf7dc 100644
--- a/closed/autoconf/custom-hook.m4
+++ b/closed/autoconf/custom-hook.m4
@@ -457,8 +457,11 @@ AC_DEFUN([OPENJ9_PLATFORM_SETUP],
elif test "x$OPENJDK_BUILD_OS" = xmacosx ; then
OPENJ9_PLATFORM_CODE=oa64
OPENJ9_BUILD_OS=osx
+ elif test "x$OPENJDK_BUILD_OS" = xbsd ; then
+ OPENJ9_PLATFORM_CODE=ba64
+ OPENJ9_BUILD_OS=bsd
else
AC_MSG_ERROR([Unsupported OpenJ9 platform ${OPENJDK_BUILD_OS}!])
fi
diff --git a/make/autoconf/toolchain.m4 b/make/autoconf/toolchain.m4
index 99c780532..6db87d9f1 100644
--- a/make/autoconf/toolchain.m4
+++ b/make/autoconf/toolchain.m4
@@ -42,6 +42,7 @@ VALID_TOOLCHAINS_linux="gcc clang"
VALID_TOOLCHAINS_macosx="gcc clang"
VALID_TOOLCHAINS_aix="xlc"
VALID_TOOLCHAINS_windows="microsoft"
+VALID_TOOLCHAINS_bsd="gcc clang"
# Toolchain descriptions
TOOLCHAIN_DESCRIPTION_clang="clang/LLVM"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment