Reinhard Tartler <[email protected]> writes:

> This unbreaks static compilation against libav when using pkg-config,
> like mplayer2 does
>
> Taken from on a patch from "Uoti Urpal <[email protected]>"
> http://repo.or.cz/w/FFMpeg-mirror/mplayer-patches.git/commitdiff/65e612b5943fe79a6aaf83c0f48a1e4a0f739ffc?hp=0d0f1bc11ec7c8f81a61c1fa4a6bc0048ad10f30
> ---
>  configure |    6 +++---
>  1 files changed, 3 insertions(+), 3 deletions(-)
>
> diff --git a/configure b/configure
> index 32c3544..8c08fd3 100755
> --- a/configure
> +++ b/configure
> @@ -3425,10 +3425,10 @@ Cflags: -I\${includedir}
>  EOF
>  }
>  
> -pkgconfig_generate libavutil "Libav utility library" "$LIBAVUTIL_VERSION"
> +pkgconfig_generate libavutil "Libav utility library" "$LIBAVUTIL_VERSION" 
> "-lm"

This is wrong.  Not all systems have libm.  It should be added only if
it exists.

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

Reply via email to