compile with -std=gnu11 instead of -std=c11
This commit is contained in:
parent
5791a2d449
commit
477ce85e29
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Reference in New Issue