aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMåns Rullgård <mans@mansr.com>2010-02-10 22:14:28 +0000
committerMåns Rullgård <mans@mansr.com>2010-02-10 22:14:28 +0000
commit33bd38dbd3f5d8c06c6229f6f404ba664027a618 (patch)
tree8738aa83a5317b5735b4e045cfdb99c56819cddf
parent6b73c0aedcbd4645259c45196400180949de238f (diff)
downloadffmpeg-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-xconfigure3
1 files changed, 2 insertions, 1 deletions
diff --git a/configure b/configure
index f324e17929..b28b4685a1 100755
--- a/configure
+++ b/configure
@@ -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
}