Dear All,

I attach a patch that fixes an apparent issue with Ironclad support.

--
With Valediction,
Kamila Szewczyk (https://iczelia.net)

From a5e8b42af8013cd7cba95aa0433a35461647cc54 Mon Sep 17 00:00:00 2001
From: Kamila Szewczyk <[email protected]>
Date: Tue, 20 Oct 2026 11:21:29 +0200
Subject: [PATCH] config.guess: initialize libc for lowercase Ironclad

The *:[Ii]ronclad:*:* branches accept a lowercase "ironclad" from
uname -s, but the libc detection block only matched "Ironclad", so
LIBC was never set and config.guess failed under "set -u" (or printed
a triplet with an empty libc).

---
 config.guess                | 2 +-
 testsuite/config-guess.data | 1 +
 2 files changed, 2 insertions(+), 1 deletion(-)

diff --git a/config.guess b/config.guess
index c7f4c32..02ac957 100755
--- a/config.guess
+++ b/config.guess
@@ -150,7 +150,7 @@ UNAME_SYSTEM=`(uname -s) 2>/dev/null` || UNAME_SYSTEM=unknown
 UNAME_VERSION=`(uname -v) 2>/dev/null` || UNAME_VERSION=unknown
 
 case $UNAME_SYSTEM in
-Ironclad|Linux|GNU|GNU/*)
+[Ii]ronclad|Linux|GNU|GNU/*)
 	LIBC=unknown
 
 	set_cc_for_build
diff --git a/testsuite/config-guess.data b/testsuite/config-guess.data
index 61655db..b47c8e8 100644
--- a/testsuite/config-guess.data
+++ b/testsuite/config-guess.data
@@ -150,5 +150,6 @@ x86_64 | 2.6.32 | Linux | ignored | ignored | x86_64-pc-linux-gnu
 x86_64 | 2.6.32 | VMkernel | ignored | ignored | x86_64-unknown-esx
 x86_64 | 8.0 | OS108 | ignored | ignored | x86_64-unknown-os108_8.0
 x86_64 | ignored | Ironclad | ignored | ignored | x86_64-pc-ironclad-gnu
+x86_64 | ignored | ironclad | ignored | ignored | x86_64-pc-ironclad-gnu
 x86_64 | ignored | Managarm | ignored | ignored | x86_64-pc-managarm-mlibc
 xtensa | 2.6.15 | Linux | ignored | ignored | xtensa-unknown-linux-gnu
-- 
2.53.0

Attachment: OpenPGP_0xC868F0B6DE38409D.asc
Description: OpenPGP public key

Attachment: OpenPGP_signature.asc
Description: OpenPGP digital signature

Reply via email to