Commit dd5e464f authored by LRN's avatar LRN

libdvdread uses internal dlfcn on W32, unconditionally

On W32 libdvdread unconditionally uses msvc/contrib/dlfcn.c
While this allows libdvdread to be compiled out of the box, it
prevents it from linking to any other dlfcn implementation. Namely -
to dlfcn-win32 [1] (which is somewhat more POSIX-compliant).

Note that LDFLAGS modification should go AFTER (!) all AC_CHECK_LIB
calls, because -no-undefined is no longer valid as a compiler option.

parent ec537474
......@@ -144,7 +144,12 @@ if test x"$enable_libdvdcss" != xyes; then
dnl dlopen libdvdcss
case $host in
CFLAGS="-idirafter \$(top_srcdir)/msvc/include $CFLAGS"
AC_CHECK_LIB(c, dlopen,
AC_CHECK_LIB(dl, dlopen,
AC_MSG_ERROR(dynamic linker needed)))
LDFLAGS="-no-undefined $LDFLAGS"
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment