You've already forked FFmpeg
mirror of
https://github.com/FFmpeg/FFmpeg.git
synced 2025-08-10 06:10:52 +02:00
configure: slightly more robust looking check for math functions.
I dont know on which system the prior check failed but an advanced linker on some platform might have optimized func() out as unreachable. Patch taken from http://floss.freebox.fr Author: unknown Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
This commit is contained in:
2
configure
vendored
2
configure
vendored
@@ -708,7 +708,7 @@ check_mathfunc(){
|
|||||||
check_ld "$@" <<EOF && enable $func
|
check_ld "$@" <<EOF && enable $func
|
||||||
#include <math.h>
|
#include <math.h>
|
||||||
float foo(float f) { return $func(f); }
|
float foo(float f) { return $func(f); }
|
||||||
int main(void){ return 0; }
|
int main(void){ return (int) foo; }
|
||||||
EOF
|
EOF
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user