From 94d3214151adb9a8625f3e4762bc815620efd533 Mon Sep 17 00:00:00 2001 From: Sam James Date: Tue, 17 Mar 2026 23:41:42 +0000 Subject: [PATCH] gh-85332: Support cross-compiling for GNU/Hurd Recognise *-gnu (after *-linux*) as GNU/Hurd for cross-compilation. --- configure | 6 ++++++ configure.ac | 6 ++++++ 2 files changed, 12 insertions(+) diff --git a/configure b/configure index 23f24d51c79e1a..4011fb9184730f 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 635fce3f2e6fad..72b3d76b9571a9 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= ;;