From 33bd38dbd3f5d8c06c6229f6f404ba664027a618 Mon Sep 17 00:00:00 2001 From: Måns Rullgård Date: Wed, 10 Feb 2010 22:14:28 +0000 Subject: 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 --- configure | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/configure b/configure index f324e17929..b28b4685a1 100755 --- a/configure +++ b/configure @@ -675,7 +675,8 @@ check_mathfunc(){ disable $func check_ld "$@" < -int main(void){ $func(0); return 0; } +float foo(float f) { return $func(f); } +int main(void){ return 0; } EOF } -- cgit v1.2.3