python: fix config.guess for non-x86 arch

* Should fix build on arm, arm64, riscv64, etc
This commit is contained in:
Alexander von Gluck IV
2024-03-14 12:57:20 -05:00
parent 3b954cf3d9
commit 6f79a984a8
2 changed files with 33 additions and 1 deletions

View File

@@ -902,3 +902,35 @@ index b7c6b1b..84bb449 100644
--
2.42.1
From 7cc64ef6b93717111109443ef8f51b932f1a33f3 Mon Sep 17 00:00:00 2001
From: Alexander von Gluck IV <kallisti5@unixzen.com>
Date: Thu, 14 Mar 2024 12:54:33 -0500
Subject: [PATCH] config.guess: Update to universal haiku arch guessing
* Matches upstream config.guess as of 2022, python just
ships a really old one
---
config.guess | 7 +++++--
1 file changed, 5 insertions(+), 2 deletions(-)
diff --git a/config.guess b/config.guess
index e81d3ae..366429c 100755
--- a/config.guess
+++ b/config.guess
@@ -1364,8 +1364,11 @@ EOF
BePC:Haiku:*:*) # Haiku running on Intel PC compatible.
GUESS=i586-pc-haiku
;;
- x86_64:Haiku:*:*)
- GUESS=x86_64-unknown-haiku
+ ppc:Haiku:*:*)
+ GUESS=powerpc-apple-haiku
+ ;;
+ *:Haiku:*:*)
+ GUESS=$UNAME_MACHINE-unknown-haiku
;;
SX-4:SUPER-UX:*:*)
GUESS=sx4-nec-superux$UNAME_RELEASE
--
2.44.0