Commit 78e2db66 authored by Diego Elio Pettenò's avatar Diego Elio Pettenò Committed by Jean-Baptiste Kempf

build: make sure to add -ldl to Libs.private if needed.

Signed-off-by: Diego Elio Pettenò's avatarDiego Elio Pettenò <flameeyes@flameeyes.eu>
Signed-off-by: Jean-Baptiste Kempf's avatarJean-Baptiste Kempf <jb@videolan.org>
parent 8c321835
......@@ -126,6 +126,10 @@ AS_IF([test "${SYS}" != "mingw32"], [
AC_SEARCH_LIBS([pthread_create], [pthread], ,
[AC_MSG_ERROR([pthread required])])
AC_SEARCH_LIBS([dlopen], [dl])
DLOPEN_LIBS="$ac_cv_search_dlopen"
AS_CASE([$DLOPEN_LIBS],
[no|none\ required], [DLOPEN_LIBS=""])
AC_SUBST([DLOPEN_LIBS])
])
dnl libxml2 for metadata parser
......
......@@ -7,4 +7,5 @@ Name: libbluray
Description: library supporting Blu-ray playback
Version: @PACKAGE_VERSION@
Libs: -L${libdir} -lbluray
Libs.private: @DLOPEN_LIBS@
Cflags: -I${includedir}
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