Dear developers,

The config.guess script currently only checks for the glibc, uclibc, and 
dietlibc libraries.  The
attached patch adds support for the musl C library.  Unfortunately, features.h 
in musl does not
define a __MUSL__ macro (or similar) which is why this has to be the new 
default case instead of
glibc.  If features.h or a C compiler are not available it will default to gnu 
as before.

Kind regards,
Henri
diff --git a/config.guess b/config.guess
index ae5ffc7..fa5a74b 100755
--- a/config.guess
+++ b/config.guess
@@ -2,7 +2,7 @@
 # Attempt to guess a canonical system name.
 #   Copyright 1992-2018 Free Software Foundation, Inc.
 
-timestamp='2018-01-16'
+timestamp='2018-01-25'
 
 # 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
@@ -141,12 +141,14 @@ Linux|GNU|GNU/*)
 	eval "$set_cc_for_build"
 	cat <<-EOF > "$dummy.c"
 	#include <features.h>
-	#if defined(__UCLIBC__)
+	#if defined(__GLIBC__)
+	LIBC=gnu
+	#elif defined(__UCLIBC__)
 	LIBC=uclibc
 	#elif defined(__dietlibc__)
 	LIBC=dietlibc
 	#else
-	LIBC=gnu
+	LIBC=musl
 	#endif
 	EOF
 	eval "`$CC_FOR_BUILD -E "$dummy.c" 2>/dev/null | grep '^LIBC' | sed 's, ,,g'`"
_______________________________________________
config-patches mailing list
config-patches@gnu.org
https://lists.gnu.org/mailman/listinfo/config-patches

Reply via email to