summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--Misc/NEWS.d/next/Build/2024-12-31-17-09-37.gh-issue-90905.PjLNai.rst1
-rwxr-xr-xconfigure12
-rw-r--r--configure.ac12
3 files changed, 25 insertions, 0 deletions
diff --git a/Misc/NEWS.d/next/Build/2024-12-31-17-09-37.gh-issue-90905.PjLNai.rst b/Misc/NEWS.d/next/Build/2024-12-31-17-09-37.gh-issue-90905.PjLNai.rst
new file mode 100644
index 0000000..31bb5fe
--- /dev/null
+++ b/Misc/NEWS.d/next/Build/2024-12-31-17-09-37.gh-issue-90905.PjLNai.rst
@@ -0,0 +1 @@
+Add support for cross-compiling to x86_64 on aarch64/arm64 macOS.
diff --git a/configure b/configure
index bb77c55..70581e1 100755
--- a/configure
+++ b/configure
@@ -4097,6 +4097,9 @@ then
*-apple-ios*)
ac_sys_system=iOS
;;
+ *-*-darwin*)
+ ac_sys_system=Darwin
+ ;;
*-*-vxworks*)
ac_sys_system=VxWorks
;;
@@ -4591,6 +4594,15 @@ printf "%s\n" "$IPHONEOS_DEPLOYMENT_TARGET" >&6; }
;;
esac
;;
+ *-*-darwin*)
+ case "$host_cpu" in
+ arm*)
+ _host_ident=arm
+ ;;
+ *)
+ _host_ident=$host_cpu
+ esac
+ ;;
*-*-vxworks*)
_host_ident=$host_cpu
;;
diff --git a/configure.ac b/configure.ac
index 653cd3f..d7c3920 100644
--- a/configure.ac
+++ b/configure.ac
@@ -330,6 +330,9 @@ then
*-apple-ios*)
ac_sys_system=iOS
;;
+ *-*-darwin*)
+ ac_sys_system=Darwin
+ ;;
*-*-vxworks*)
ac_sys_system=VxWorks
;;
@@ -790,6 +793,15 @@ if test "$cross_compiling" = yes; then
;;
esac
;;
+ *-*-darwin*)
+ case "$host_cpu" in
+ arm*)
+ _host_ident=arm
+ ;;
+ *)
+ _host_ident=$host_cpu
+ esac
+ ;;
*-*-vxworks*)
_host_ident=$host_cpu
;;