On Fri, 2 Apr 2021 13:28:31 GMT, Anton Kozlov <akoz...@openjdk.org> wrote:
> Please review adding necessary flags for cross-compilation on macos/x86 > targeting macos/aarch64. > > All CFLAGS, CXXFLAGS, LDFLAGS need target CPU flag `-arch arm64`. > This patch adds the flag along e.g `-m64`. > > Tested: > * cross-compilation on macos/x86 to macos/aarch64: configure > --openjdk-target=aarch64-apple-darwin > * native compilation on macos/aarch64 > * native compilation on macos/x86 make/autoconf/flags.m4 line 269: > 267: > 268: if test "x$OPENJDK_TARGET_OS" = xmacosx && > 269: test "x$OPENJDK_TARGET_CPU" = xaarch64; then Thank you for getting on this! For symmetry, and to enable cross compilation on both directions, can we add the necessary flag for x64 too? Also, I doubt it matters much, but we could also only set these flags if COMPILE_TYPE=cross. ------------- PR: https://git.openjdk.java.net/jdk/pull/3325