Don't pass -ffast-math to clang, since it ignores it and complains.

This commit is contained in:
Eric Anholt
2010-08-30 14:19:23 -07:00
parent 2a50187a92
commit a3c2bd416a
+4 -1
View File
@@ -137,7 +137,10 @@ esac
dnl Add flags for gcc and g++
if test "x$GCC" = xyes; then
CFLAGS="$CFLAGS -Wall -Wmissing-prototypes -std=c99 -ffast-math"
CFLAGS="$CFLAGS -Wall -Wmissing-prototypes -std=c99"
if test "x$CLANG" = "xno"; then
CFLAGS="$CFLAGS -ffast-math"
fi
# Enable -fvisibility=hidden if using a gcc that supports it
save_CFLAGS="$CFLAGS"