From 9331a2ee41d13d04e2eed077f1f934a62288ab01 Mon Sep 17 00:00:00 2001 From: Michael Niedermayer Date: Tue, 13 Sep 2011 17:29:49 +0200 Subject: [PATCH] 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 --- configure | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/configure b/configure index 284379463b..300852d83b 100755 --- a/configure +++ b/configure @@ -708,7 +708,7 @@ check_mathfunc(){ check_ld "$@" < float foo(float f) { return $func(f); } -int main(void){ return 0; } +int main(void){ return (int) foo; } EOF } -- 2.11.0