Stricter check for math.h functions

GCC is sometimes able to optimise constant calls to these functions,
incorrectly indicating that they exist.  Unoptimised calls will then
fail to link.

Originally committed as revision 21749 to svn://svn.ffmpeg.org/ffmpeg/trunk
This commit is contained in:
Måns Rullgård 2010-02-10 22:14:28 +00:00
parent 6b73c0aedc
commit 33bd38dbd3
1 changed files with 2 additions and 1 deletions

3
configure vendored
View File

@ -675,7 +675,8 @@ check_mathfunc(){
disable $func
check_ld "$@" <<EOF && enable $func
#include <math.h>
int main(void){ $func(0); return 0; }
float foo(float f) { return $func(f); }
int main(void){ return 0; }
EOF
}