]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
gh-85332: Support cross-compiling for GNU/Hurd (#146094)
authorSam James <sam@gentoo.org>
Fri, 27 Mar 2026 14:33:12 +0000 (14:33 +0000)
committerGitHub <noreply@github.com>
Fri, 27 Mar 2026 14:33:12 +0000 (15:33 +0100)
Recognise *-gnu (after *-linux*) as GNU/Hurd for cross-compilation.

configure
configure.ac

index c5109f69ebddb03ee7ac0767e7615b952c3bb106..0c65e5c11e669a59e03131a2762d1b168391a5cb 100755 (executable)
--- 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=
                ;;
index 8fae8b46fa6fd578e36497a59919fe0916ce5756..bef76c92d0adf94e17208a78c0af30eb6276da17 100644 (file)
@@ -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=
                ;;