Diego Biurrun <[email protected]> writes:

> On some systems -lm is not required to link against libmath.
> ---
>  configure |    3 ++-
>  1 files changed, 2 insertions(+), 1 deletions(-)
>
> diff --git a/configure b/configure
> index 0b0d532..c014668 100755
> --- a/configure
> +++ b/configure
> @@ -2934,9 +2934,10 @@ for thread in $THREADS_LIST; do
>      fi
>  done
>
> -check_lib math.h sin -lm && LIBM="-lm"
>  enabled vaapi && require vaapi va/va.h vaInitialize -lva
>
> +check_mathfunc sin || { check_lib math.h sin -lm && LIBM="-lm"; }

This is almost as broken.  The math functions may macros or inline
functions in addition to regular functions.  Thus check_mathfunc can
succeed for any given function even if -lm is required in the general
case.

-- 
Måns Rullgård
[email protected]
_______________________________________________
libav-devel mailing list
[email protected]
https://lists.libav.org/mailman/listinfo/libav-devel

Reply via email to