[PATCH vkd3d 7/8] libs/vkd3d: Load libvulkan dynamically.

Henri Verbeet hverbeet at gmail.com
Wed Jan 17 16:43:19 CST 2018


On 17 January 2018 at 15:18, Józef Kucia <joseph.kucia at gmail.com> wrote:
> diff --git a/configure.ac b/configure.ac
> index b886058fef51..8a39fef7d2b9 100644
> --- a/configure.ac
> +++ b/configure.ac
> @@ -62,6 +62,11 @@ m4_ifdef([PKG_PROG_PKG_CONFIG], [PKG_PROG_PKG_CONFIG], [m4_fatal([pkg-config aut
>
>  AC_CHECK_LIB([m], [ceilf])
>
> +AC_ARG_VAR([DL_LIBS], [linker flags for dl])
> +AC_CHECK_LIB([dl], [dlopen],
> +             [AC_SUBST([DL_LIBS], ["-ldl"])],
> +             [AC_MSG_ERROR([libdl not found.])])
I'm not sure we should necessarily care a lot about non-Linux systems
at this point, but IIRC on at least some sytems dlopen() is part of
libc.



More information about the wine-devel mailing list