[nasm:nasm-2.15.xx] configure.ac: also try -std=c99
nasm-bot for H. Peter Anvin (Intel)
hpa at zytor.com
Thu Jul 9 19:36:03 PDT 2020
Commit-ID: e1f0b35af06d03ca4b5f72d0500c51af1e487048
Gitweb: http://repo.or.cz/w/nasm.git?a=commitdiff;h=e1f0b35af06d03ca4b5f72d0500c51af1e487048
Author: H. Peter Anvin (Intel) <hpa at zytor.com>
AuthorDate: Thu, 9 Jul 2020 19:33:26 -0700
Committer: H. Peter Anvin (Intel) <hpa at zytor.com>
CommitDate: Thu, 9 Jul 2020 19:33:26 -0700
configure.ac: also try -std=c99
If -std=c17 and -std=c11 don't work, try -std=c99 as well.
-std=c90 is unlikely to work because of the requirement for "long
long" on L32 platforms, which isn't likely to be supported on a pure
C90 compiler.
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 784191ca..7b727693 100644
--- a/configure.ac
+++ b/configure.ac
@@ -29,7 +29,8 @@ AC_SYS_LARGEFILE
AC_PROG_CC
AC_PROG_CC_STDC
PA_ADD_CFLAGS([-std=c17], [], [],
-[PA_ADD_CFLAGS([-std=c11])])
+[PA_ADD_CFLAGS([-std=c11], [], [],
+ [PA_ADD_CFLAGS([-std=c99])])])
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