"Reinhard Tartler " <[email protected]> writes:

> Module: libav
> Branch: master
> Commit: 50f7c296469e9675e07fd1afa37b5e430b876f1c
>
> Author:    Reinhard Tartler <[email protected]>
> Committer: Diego Biurrun <[email protected]>
> Date:      Sun Apr 24 17:24:24 2011 +0200
>
> configure: Add missing libm library dependencies to .pc files.
>
> This unbreaks static compilation using pkg-config on systems in need of -lm.
> Based on an mplayer2 patch by Uoti Urpala <[email protected]>
>
> Signed-off-by: Diego Biurrun <[email protected]>
>
> ---
>
>  configure |    8 ++++----
>  1 files changed, 4 insertions(+), 4 deletions(-)
>
> diff --git a/configure b/configure
> index 6dd00dc..f514503 100755
> --- a/configure
> +++ b/configure
> @@ -2840,7 +2840,7 @@ for thread in $THREADS_LIST; do
>      fi
>  done
>  
> -check_lib math.h sin -lm
> +check_lib math.h sin -lm && LIBM="-lm"
>  enabled vaapi && require vaapi va/va.h vaInitialize -lva
>  
>  check_mathfunc exp2
> @@ -3427,10 +3427,10 @@ Cflags: -I\${includedir}
>  EOF
>  }
>  
> -pkgconfig_generate libavutil "Libav utility library" "$LIBAVUTIL_VERSION"
> -pkgconfig_generate libavcodec "Libav codec library" "$LIBAVCODEC_VERSION" 
> "$extralibs" "libavutil = $LIBAVUTIL_VERSION"
> +pkgconfig_generate libavutil "Libav utility library" "$LIBAVUTIL_VERSION" 
> "$LIBM"
> +pkgconfig_generate libavcodec "Libav codec library" "$LIBAVCODEC_VERSION" 
> "$extralibs $LIBM" "libavutil = $LIBAVUTIL_VERSION"

$extralibs already contains -lm if needed.

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

Reply via email to