提交 9331a2ee 编写于 作者: M 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: NMichael Niedermayer <michaelni@gmx.at>
上级 8f5bb35f
......@@ -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
}
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册