mirror of
git://git.savannah.gnu.org/config.git
synced 2025-06-06 22:40:23 +12:00
Port config.guess to strict POSIX.1-2024 c17
* config.guess (set_cc_for_build): Try the c17 compiler, standardized in POSIX.1-2024. See: https://pubs.opengroup.org/onlinepubs/9799919799/utilities/c17.html While we're at it, prefer c99 to c89. Signed-off-by: Dmitry V. Levin <ldv@altlinux.org>
This commit is contained in:
parent
130dcf7787
commit
00b1592749
4
config.guess
vendored
4
config.guess
vendored
@ -4,7 +4,7 @@
|
||||
|
||||
# shellcheck disable=SC2006,SC2268 # see below for rationale
|
||||
|
||||
timestamp='2024-04-03'
|
||||
timestamp='2024-07-27'
|
||||
|
||||
# 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
|
||||
@ -123,7 +123,7 @@ set_cc_for_build() {
|
||||
dummy=$tmp/dummy
|
||||
case ${CC_FOR_BUILD-},${HOST_CC-},${CC-} in
|
||||
,,) echo "int x;" > "$dummy.c"
|
||||
for driver in cc gcc c89 c99 ; do
|
||||
for driver in cc gcc c17 c99 c89 ; do
|
||||
if ($driver -c -o "$dummy.o" "$dummy.c") >/dev/null 2>&1 ; then
|
||||
CC_FOR_BUILD=$driver
|
||||
break
|
||||
|
@ -1,5 +1,5 @@
|
||||
.\" DO NOT MODIFY THIS FILE! It was generated by help2man 1.48.5.
|
||||
.TH CONFIG.GUESS "1" "May 2024" "GNU config.guess (2024-04-03)" "User Commands"
|
||||
.TH CONFIG.GUESS "1" "July 2024" "GNU config.guess (2024-07-27)" "User Commands"
|
||||
.SH NAME
|
||||
config.guess \- guess the build system triplet
|
||||
.SH SYNOPSIS
|
||||
|
Loading…
x
Reference in New Issue
Block a user