aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPierre Roux2020-01-21 10:50:56 +0100
committerPierre Roux2020-01-21 10:50:56 +0100
commit0bd1afb3c87b6fa08c036b97d662a29138683f6e (patch)
treefcf67ed84b57dda47b789afc537f3b14174c91fc
parentf93782dbbb2e61e6664a09b3ae7981223e57f9d3 (diff)
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.
-rw-r--r--configure.ml2
1 files changed, 1 insertions, 1 deletions
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"