Integrated: 8264650: Cross-compilation to macos/aarch64
Anton Kozlov
akozlov at openjdk.java.net
Mon Apr 5 07:01:36 UTC 2021
On Fri, 2 Apr 2021 13:28:31 GMT, Anton Kozlov <akozlov at 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
> * macos/x86 -> macos/aarch64: configure --openjdk-target=aarch64-apple-darwin
> * macos/aarch64 -> macos/x86: configure --openjdk-target=x86_64-apple-darwin
> * native compilation:
> * macos/aarch64
> * macos/x86
This pull request has now been integrated.
Changeset: 7f9ece23
Author: Anton Kozlov <akozlov at openjdk.org>
Committer: Vladimir Kempik <vkempik at openjdk.org>
URL: https://git.openjdk.java.net/jdk/commit/7f9ece23
Stats: 8 lines in 1 file changed: 8 ins; 0 del; 0 mod
8264650: Cross-compilation to macos/aarch64
Reviewed-by: erikj
-------------
PR: https://git.openjdk.java.net/jdk/pull/3325
More information about the build-dev
mailing list