compile with -std=gnu11 instead of -std=c11

This commit is contained in:
Pascal Kuthe 2022-12-10 23:43:31 +01:00
parent eed4d62972
commit bc37a3fbcb
No known key found for this signature in database
GPG Key ID: D715E8655AE166A6
1 changed files with 3 additions and 3 deletions

View File

@ -1197,9 +1197,9 @@ if test "x$enable_osdi" = xyes; then
AS_VAR_POPDEF([CACHEVAR])dnl
])dnl AX_CHECK_COMPILE_FLAGS
AX_CHECK_COMPILE_FLAG([-std=c11], [
CFLAGS="$CFLAGS -std=c11"
LDLAGS="$LDLAGS -std=c11"
AX_CHECK_COMPILE_FLAG([-std=gnu11], [
CFLAGS="$CFLAGS -std=gnu11"
LDLAGS="$LDLAGS -std=gnu11"
], [
echo "C compiler cannot compile C11 code"
exit -1