Originally committed as revision 12245 to svn://svn.ffmpeg.org/ffmpeg/trunk
@@ -1808,6 +1808,7 @@ elif enabled optimizations; then
add_cflags "-O3"
fi
+check_cflags -fno-math-errno
# PIC flags for shared library objects where they are needed
if enabled shared; then