On Tue, Jan 24, 2017 at 6:12 PM, Diego Biurrun <di...@biurrun.de> wrote:
> ---
> @@ -4452,11 +4448,8 @@ check_code cc arm_neon.h "int16x8_t test = 
> vdupq_n_s16(0)" && enable intrinsics_
>
>  check_ldflags -Wl,--as-needed
>
> -if check_func dlopen; then
> -    ldl=
> -elif check_func dlopen -ldl; then
> -    ldl=-ldl
> -fi
> +# On some systems dynamic loading requires no extra linker flags
> +check_lib libdl dlfcn.h dlopen || check_lib libdl dlfcn.h dlopen -ldl
>
>  if ! disabled network; then
>      check_func getaddrinfo $network_extralibs
> @@ -4639,7 +4632,7 @@ done
>
>  # these are off by default, so fail if requested and not available
>  enabled avisynth          && require_header avisynth/avisynth_c.h
> -enabled avxsynth          && require avxsynth "avxsynth/avxsynth_c.h 
> dlfcn.h" dlopen -ldl
> +enabled avxsynth          && require_header avxsynth/avxsynth_c.h
>  enabled cuda              && require cuda cuda.h cuInit -lcuda
>  enabled frei0r            && require_header frei0r.h
>  enabled gnutls            && require_pkg_config "" gnutls gnutls/gnutls.h 
> gnutls_global_init
> --

The change is ok, I'm just unsure whether the check_lib should be
closer to where the other check_lib checks are.
-- 
Vittorio
_______________________________________________
libav-devel mailing list
libav-devel@libav.org
https://lists.libav.org/mailman/listinfo/libav-devel

Reply via email to