diff options
-rw-r--r-- | configure.ac | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/configure.ac b/configure.ac index 75189761ee..c585c7ba7c 100644 --- a/configure.ac +++ b/configure.ac @@ -96,12 +96,18 @@ dnl Add flags for gcc and g++ if test "x$GCC" = xyes; then CFLAGS="$CFLAGS -Wall -Wmissing-prototypes -std=c99 -ffast-math" + # Work around GCC bug #39501 + CFLAGS="$CFLAGS -fno-finite-math-only" + # Work around aliasing bugs - developers should comment this out CFLAGS="$CFLAGS -fno-strict-aliasing" fi if test "x$GXX" = xyes; then CXXFLAGS="$CXXFLAGS -Wall" + # Work around GCC bug #39501 + CXXFLAGS="$CXXFLAGS -fno-finite-math-only" + # Work around aliasing bugs - developers should comment this out CXXFLAGS="$CXXFLAGS -fno-strict-aliasing" fi |