https://github.com/python/cpython/commit/a209dd2bdb56f36feb36e3936c4b1b6a051faf9b
commit: a209dd2bdb56f36feb36e3936c4b1b6a051faf9b
branch: main
author: Sam James <[email protected]>
committer: vstinner <[email protected]>
date: 2026-03-27T15:33:12+01:00
summary:

gh-85332: Support cross-compiling for GNU/Hurd (#146094)

Recognise *-gnu (after *-linux*) as GNU/Hurd for cross-compilation.

files:
M configure
M configure.ac

diff --git a/configure b/configure
index c5109f69ebddb0..0c65e5c11e669a 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 8fae8b46fa6fd5..bef76c92d0adf9 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=
                ;;

_______________________________________________
Python-checkins mailing list -- [email protected]
To unsubscribe send an email to [email protected]
https://mail.python.org/mailman3//lists/python-checkins.python.org
Member address: [email protected]

Reply via email to