summaryrefslogtreecommitdiffstats
path: root/configure
diff options
context:
space:
mode:
authordiego <diego@b3059339-0415-0410-9bf9-f77b7e298cf2>2005-05-29 23:16:22 +0000
committerdiego <diego@b3059339-0415-0410-9bf9-f77b7e298cf2>2005-05-29 23:16:22 +0000
commit449e6d7dffd5bfcec0cce7e59241cfb325041423 (patch)
tree869fc797fcbfecd4143c805304601f8a7c2b1960 /configure
parent2bdc7899a179504ccc3b8fcea032e224867c6805 (diff)
downloadmpv-449e6d7dffd5bfcec0cce7e59241cfb325041423.tar.bz2
mpv-449e6d7dffd5bfcec0cce7e59241cfb325041423.tar.xz
The default CFLAGS settings include -ffast-math and GCC 3.4.3 therefore
optimizes the lrintf call in the test away, effectively turning it into a NOP. The attached patch forces -ffast-math of for this test. patch by Joerg Sonnenberger <joerg - at -britannica - dot - bec - dot - de> git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@15592 b3059339-0415-0410-9bf9-f77b7e298cf2
Diffstat (limited to 'configure')
-rwxr-xr-xconfigure2
1 files changed, 1 insertions, 1 deletions
diff --git a/configure b/configure
index 14ab079aa4..f216ba5ba9 100755
--- a/configure
+++ b/configure
@@ -2451,7 +2451,7 @@ echores "$_posix4"
echocheck "lrintf"
cat > $TMPC << EOF
#include <math.h>
-int main(void) { (void) lrintf(0.0); return 0; }
+int main(void) { long (*foo)(double); foo = lrintf; (void)(*foo)(0.0); return 0; }
EOF
_lrintf=no
cc_check $_ld_lm && _lrintf=yes