[SCM] libav/experimental: Stricter check for math.h functions
siretart at users.alioth.debian.org
siretart at users.alioth.debian.org
Sun Jun 30 16:59:46 UTC 2013
The following commit has been merged in the experimental branch:
commit 33bd38dbd3f5d8c06c6229f6f404ba664027a618
Author: Måns Rullgård <mans at mansr.com>
Date: Wed Feb 10 22:14:28 2010 +0000
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
diff --git a/configure b/configure
index f324e17..b28b468 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
}
--
Libav/FFmpeg packaging
More information about the pkg-multimedia-commits
mailing list