[MPlayer-dev-eng] lrintf detection patch

Joerg Sonnenberger joerg at britannica.bec.de
Fri May 20 21:50:15 CEST 2005


Hi all,
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.

Joerg
-------------- next part --------------
--- configure.orig	2005-04-13 13:46:35.000000000 +0200
+++ configure	2005-05-20 21:46:44.000000000 +0200
@@ -2385,7 +2386,7 @@
 int main(void) { (void) lrintf(0.0); return 0; }
 EOF
 _lrintf=no
-cc_check $_ld_lm && _lrintf=yes
+cc_check -fno-fast-math $_ld_lm && _lrintf=yes
 if test "$_lrintf" = yes ; then
   _def_lrintf="#define HAVE_LRINTF 1"
 else


More information about the MPlayer-dev-eng mailing list