From 71c365b31551e6eed9f2da1825ed4310842e28d9 Mon Sep 17 00:00:00 2001 From: Audrey Dutcher Date: Tue, 24 Sep 2024 10:23:15 +0200 Subject: [PATCH] python3: Enable FreeBSD cross build MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit This only enables x86_64-unknown-freebsd, not any other FreeBSD, since I do not have any other machines to tests on. If you're reading this, feel free to try out other arches! Signed-off-by: Jörg Thalheim --- .../Build/2024-09-24-08-30-25.gh-issue-124424.UBXNFo.rst | 1 + configure.ac | 6 ++++++ 2 files changed, 7 insertions(+) create mode 100644 Misc/NEWS.d/next/Build/2024-09-24-08-30-25.gh-issue-124424.UBXNFo.rst diff --git a/Misc/NEWS.d/next/Build/2024-09-24-08-30-25.gh-issue-124424.UBXNFo.rst b/Misc/NEWS.d/next/Build/2024-09-24-08-30-25.gh-issue-124424.UBXNFo.rst new file mode 100644 index 00000000000000..91a9cbff387429 --- /dev/null +++ b/Misc/NEWS.d/next/Build/2024-09-24-08-30-25.gh-issue-124424.UBXNFo.rst @@ -0,0 +1 @@ +Enable cross-compiling for x86_64-freebsd diff --git a/configure.ac b/configure.ac index 1864e94ace9243..c9059a6dd8fc06 100644 --- a/configure.ac +++ b/configure.ac @@ -339,6 +339,9 @@ then *-*-wasi) ac_sys_system=WASI ;; + *-*-freebsd) + ac_sys_system=FreeBSD + ;; *) # for now, limit cross builds to known configurations MACHDEP="unknown" @@ -777,6 +780,9 @@ if test "$cross_compiling" = yes; then wasm32-*-* | wasm64-*-*) _host_ident=$host_cpu ;; + x86_64-*-freebsd) + _host_ident=x86_64 + ;; *) # for now, limit cross builds to known configurations MACHDEP="unknown"