]> git.sesse.net Git - vlc/blob - contrib/src/bluray/libbluray-win32.patch
Contribs: fix building libbluray 0.3.0 for Windows
[vlc] / contrib / src / bluray / libbluray-win32.patch
1 From 78e2db66ee6b592feaf1d1b4af490f50d164aab7 Mon Sep 17 00:00:00 2001
2 From: =?utf8?q?Diego=20Elio=20Petten=C3=B2?= <flameeyes@flameeyes.eu>
3 Date: Wed, 8 May 2013 09:40:37 -0700
4 Subject: [PATCH] build: make sure to add -ldl to Libs.private if needed.
5 MIME-Version: 1.0
6 Content-Type: text/plain; charset=utf8
7 Content-Transfer-Encoding: 8bit
8
9 Signed-off-by: Diego Elio Pettenò <flameeyes@flameeyes.eu>
10 Signed-off-by: Jean-Baptiste Kempf <jb@videolan.org>
11 ---
12  configure.ac        |    4 ++++
13  src/libbluray.pc.in |    1 +
14  2 files changed, 5 insertions(+)
15
16 diff --git a/configure.ac b/configure.ac
17 index 61ff283..c6439bd 100644
18 --- a/configure.ac
19 +++ b/configure.ac
20 @@ -126,6 +126,10 @@ AS_IF([test "${SYS}" != "mingw32"], [
21    AC_SEARCH_LIBS([pthread_create], [pthread], ,
22      [AC_MSG_ERROR([pthread required])])
23    AC_SEARCH_LIBS([dlopen], [dl])
24 +  DLOPEN_LIBS="$ac_cv_search_dlopen"
25 +  AS_CASE([$DLOPEN_LIBS],
26 +    [no|none\ required], [DLOPEN_LIBS=""])
27 +  AC_SUBST([DLOPEN_LIBS])
28  ])
29  
30  dnl libxml2 for metadata parser
31 diff --git a/src/libbluray.pc.in b/src/libbluray.pc.in
32 index 4e3fe15..ce256e2 100644
33 --- a/src/libbluray.pc.in
34 +++ b/src/libbluray.pc.in
35 @@ -7,4 +7,5 @@ Name: libbluray
36  Description: library supporting Blu-ray playback
37  Version: @PACKAGE_VERSION@
38  Libs: -L${libdir} -lbluray
39 +Libs.private: @DLOPEN_LIBS@
40  Cflags: -I${includedir}
41 -- 
42 1.7.10.4
43