diff options
-rw-r--r-- | configure.ac | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/configure.ac b/configure.ac index 62eff48f56d..315ebb06b27 100644 --- a/configure.ac +++ b/configure.ac @@ -529,8 +529,12 @@ AC_CACHE_CHECK([for clang], WARN='' if test x"$GCC" = xyes; then WARN='-Wall -Wunused -Wmissing-prototypes -Wmissing-declarations -Wstrict-prototypes -Wmissing-prototypes -Wnested-externs -Wpointer-arith -Wno-cast-qual -Wwrite-strings -Wno-switch -Wno-switch-enum -Wno-unused-value' + + # We require C99 with some GNU extensions, e.g. `linux` macro + CFLAGS="$CFLAGS -std=gnu99" + # The runtime code does not respect ANSI C strict aliasing rules - CFLAGS="$CFLAGS -std=c99 -fno-strict-aliasing" + CFLAGS="$CFLAGS -fno-strict-aliasing" # We rely on signed overflow to behave CFLAGS="$CFLAGS -fwrapv" |