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

This commit is contained in:
Pascal Kuthe 2022-12-10 23:43:31 +01:00 committed by Holger Vogt
parent 5791a2d449
commit 477ce85e29
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