From e8d6bbacd4acf22050e80e87f9b79445523124b9 Mon Sep 17 00:00:00 2001 From: "H. Peter Anvin (Intel)" Date: Thu, 9 Jul 2020 19:12:25 -0700 Subject: [PATCH] configure.ac: if we have a C17/C11-compatible compiler, use it Enable -std=c17 or -std=c11 for compilers that handle them. Signed-off-by: H. Peter Anvin (Intel) --- configure.ac | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/configure.ac b/configure.ac index d52e87d68..7f0548989 100644 --- a/configure.ac +++ b/configure.ac @@ -23,11 +23,12 @@ export WINELOADER dnl Get the canonical target system name AC_CANONICAL_HOST -dnl Enable necessary CC extensions +dnl Enable any available C extensions AC_USE_SYSTEM_EXTENSIONS AC_SYS_LARGEFILE AC_PROG_CC AC_PROG_CC_STDC +PA_ADD_CFLAGS([-std=c11]) dnl If the user did not specify a CFLAGS default, change default dnl to -O0 for debugging