From: Sam James Date: Fri, 27 Mar 2026 14:33:12 +0000 (+0000) Subject: gh-85332: Support cross-compiling for GNU/Hurd (#146094) X-Git-Tag: v3.15.0a8~145 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=a209dd2bdb56f36feb36e3936c4b1b6a051faf9b;p=thirdparty%2FPython%2Fcpython.git gh-85332: Support cross-compiling for GNU/Hurd (#146094) Recognise *-gnu (after *-linux*) as GNU/Hurd for cross-compilation. --- diff --git a/configure b/configure index c5109f69ebdd..0c65e5c11e66 100755 --- a/configure +++ b/configure @@ -4149,6 +4149,9 @@ then *-*-darwin*) ac_sys_system=Darwin ;; + *-gnu) + ac_sys_system=GNU + ;; *-*-vxworks*) ac_sys_system=VxWorks ;; @@ -4619,6 +4622,9 @@ if test "$cross_compiling" = yes; then _host_ident=$host_cpu esac ;; + *-gnu) + _host_ident=$host_cpu + ;; *-*-cygwin*) _host_ident= ;; diff --git a/configure.ac b/configure.ac index 8fae8b46fa6f..bef76c92d0ad 100644 --- a/configure.ac +++ b/configure.ac @@ -342,6 +342,9 @@ then *-*-darwin*) ac_sys_system=Darwin ;; + *-gnu) + ac_sys_system=GNU + ;; *-*-vxworks*) ac_sys_system=VxWorks ;; @@ -780,6 +783,9 @@ if test "$cross_compiling" = yes; then _host_ident=$host_cpu esac ;; + *-gnu) + _host_ident=$host_cpu + ;; *-*-cygwin*) _host_ident= ;;