mirror of
git://git.savannah.gnu.org/config.git
synced 2025-05-29 02:26:36 +12:00
* config.guess: Try to detect musl libc on GNU/Linux systems using
ldd --version. Signed-off-by: Ben Elliston <bje@gnu.org>
This commit is contained in:
parent
827c77253b
commit
3d00f60242
@ -1,3 +1,8 @@
|
||||
2018-01-26 Henri Menke <henrimenke@gmail.com>
|
||||
|
||||
* config.guess: Try to detect musl libc on GNU/Linux systems using
|
||||
ldd --version.
|
||||
|
||||
2018-01-16 Ben Elliston <bje@gnu.org>
|
||||
|
||||
* config.guess: Use double quotes on any remaining unquoted
|
||||
|
9
config.guess
vendored
9
config.guess
vendored
@ -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-26'
|
||||
|
||||
# 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
|
||||
@ -150,6 +150,13 @@ Linux|GNU|GNU/*)
|
||||
#endif
|
||||
EOF
|
||||
eval "`$CC_FOR_BUILD -E "$dummy.c" 2>/dev/null | grep '^LIBC' | sed 's, ,,g'`"
|
||||
|
||||
# If ldd exists, use it to detect musl libc.
|
||||
if command -v ldd >/dev/null && \
|
||||
ldd --version 2>&1 | grep -q ^musl
|
||||
then
|
||||
LIBC=musl
|
||||
fi
|
||||
;;
|
||||
esac
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user