The linux-dietlibc needs to be handled like linux-musl. Otherwise, trying to configure software using dietlibc will fail with the error message, "OS 'dietlibc' not recognized":
% CC="diet gcc -m32" /usr/projects/config/config.guess i686-pc-linux-dietlibc % CC="diet gcc -m32" /usr/projects/config/config.sub i686-pc-linux-dietlibc Invalid configuration 'i686-pc-linux-dietlibc': OS 'dietlibc' not recognized Signed-off-by: Theodore Ts'o <[email protected]> --- config.sub | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/config.sub b/config.sub index 404aa08..de0d9b3 100755 --- a/config.sub +++ b/config.sub @@ -4,7 +4,7 @@ # shellcheck disable=SC2006,SC2268,SC2162 # see below for rationale -timestamp='2026-05-17' +timestamp='2026-09-06' # This file is free software; you can redistribute it and/or modify it # under the terms of the GNU General Public License as published by @@ -1957,7 +1957,7 @@ fi case $os in # Sometimes we do "kernel-libc", so those need to count as OSes. - llvm* | musl* | newlib* | relibc* | uclibc*) + llvm* | musl* | dietlibc* | newlib* | relibc* | uclibc*) ;; # Likewise for "kernel-abi" eabi* | gnueabi*) -- 2.53.0
