[nasm:nasm-2.15.xx] configure.ac: if we have a C17/C11-compatible compiler, use it

nasm-bot for H. Peter Anvin (Intel) hpa at zytor.com
Thu Jul 9 19:30:03 PDT 2020


Commit-ID:  e8d6bbacd4acf22050e80e87f9b79445523124b9
Gitweb:     http://repo.or.cz/w/nasm.git?a=commitdiff;h=e8d6bbacd4acf22050e80e87f9b79445523124b9
Author:     H. Peter Anvin (Intel) <hpa at zytor.com>
AuthorDate: Thu, 9 Jul 2020 19:12:25 -0700
Committer:  H. Peter Anvin (Intel) <hpa at zytor.com>
CommitDate: Thu, 9 Jul 2020 19:12:25 -0700

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) <hpa at zytor.com>


---
 configure.ac | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/configure.ac b/configure.ac
index d52e87d6..7f054898 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


More information about the Nasm-commits mailing list