From 0bd1afb3c87b6fa08c036b97d662a29138683f6e Mon Sep 17 00:00:00 2001 From: Pierre Roux Date: Tue, 21 Jan 2020 10:50:56 +0100 Subject: More portable C flags Use -std=c99 instead of the GCC argument -fexcess-precision=standard This requires the -fasm as the VM is using the asm GNU extension (also implemented by other compilers). These flags should be more portable accross C compilers. --- configure.ml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/configure.ml b/configure.ml index 89d9ed9d2a..6e15cdbe4e 100644 --- a/configure.ml +++ b/configure.ml @@ -923,7 +923,7 @@ let datadir,datadirsuffix = let (_,_,d,s) = select "DATADIR" in d,s (** * CC runtime flags *) -let cflags_dflt = "-Wall -Wno-unused -g -O2 -fexcess-precision=standard" +let cflags_dflt = "-Wall -Wno-unused -g -O2 -std=c99 -fasm" let cflags_sse2 = "-msse2 -mfpmath=sse" -- cgit v1.2.3