diff options
author | Måns Rullgård <mans@mansr.com> | 2010-02-10 22:14:28 +0000 |
---|---|---|
committer | Måns Rullgård <mans@mansr.com> | 2010-02-10 22:14:28 +0000 |
commit | 33bd38dbd3f5d8c06c6229f6f404ba664027a618 (patch) | |
tree | 8738aa83a5317b5735b4e045cfdb99c56819cddf | |
parent | 6b73c0aedcbd4645259c45196400180949de238f (diff) | |
download | ffmpeg-33bd38dbd3f5d8c06c6229f6f404ba664027a618.tar.gz |
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
-rwxr-xr-x | configure | 3 |
1 files changed, 2 insertions, 1 deletions
@@ -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 } |