[FFmpeg-cvslog] configure: slightly more robust looking check for math functions.
Michael Niedermayer
git at videolan.org
Tue Sep 13 17:58:15 CEST 2011
ffmpeg | branch: master | Michael Niedermayer <michaelni at gmx.at> | Tue Sep 13 17:29:49 2011 +0200| [9331a2ee41d13d04e2eed077f1f934a62288ab01] | committer: Michael Niedermayer
configure: slightly more robust looking check for math functions.
I dont know on which system the prior check failed but an advanced
linker on some platform might have optimized func() out as unreachable.
Patch taken from http://floss.freebox.fr
Author: unknown
Signed-off-by: Michael Niedermayer <michaelni at gmx.at>
> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=9331a2ee41d13d04e2eed077f1f934a62288ab01
---
configure | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/configure b/configure
index 2843794..300852d 100755
--- a/configure
+++ b/configure
@@ -708,7 +708,7 @@ check_mathfunc(){
check_ld "$@" <<EOF && enable $func
#include <math.h>
float foo(float f) { return $func(f); }
-int main(void){ return 0; }
+int main(void){ return (int) foo; }
EOF
}
More information about the ffmpeg-cvslog
mailing list