[vlc-commits] dvdread/dvdnav: fix linking on darwin

David Fuhrmann git at videolan.org
Thu Feb 20 20:14:28 CET 2014


vlc | branch: master | David Fuhrmann <david.fuhrmann at googlemail.com> | Thu Feb 20 20:12:05 2014 +0100| [71e8c79f880e0c30f75702087922795f30364d75] | committer: David Fuhrmann

dvdread/dvdnav: fix linking on darwin

forwardport of 3bde20b52de75861c3c200e4d55b93dad1d6a6b1 from vlc-2.1.git.

> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=71e8c79f880e0c30f75702087922795f30364d75
---

 modules/access/Makefile.am |    6 ++++++
 1 file changed, 6 insertions(+)

diff --git a/modules/access/Makefile.am b/modules/access/Makefile.am
index 4d461d3..8b0fd08 100644
--- a/modules/access/Makefile.am
+++ b/modules/access/Makefile.am
@@ -258,6 +258,9 @@ libdvdnav_plugin_la_SOURCES = access/dvdnav.c
 libdvdnav_plugin_la_CFLAGS = $(AM_CFLAGS) $(DVDNAV_CFLAGS)
 libdvdnav_plugin_la_LIBADD = $(DVDNAV_LIBS)
 libdvdnav_plugin_la_LDFLAGS = $(AM_LDFLAGS) -rpath '$(accessdir)'
+if HAVE_DARWIN
+libdvdnav_plugin_la_LDFLAGS += -Wl,-framework,IOKit,-framework,CoreFoundation
+endif
 access_LTLIBRARIES += $(LTLIBdvdnav)
 EXTRA_LTLIBRARIES += libdvdnav_plugin.la
 
@@ -265,6 +268,9 @@ libdvdread_plugin_la_SOURCES = access/dvdread.c
 libdvdread_plugin_la_CFLAGS = $(AM_CFLAGS) $(DVDREAD_CFLAGS)
 libdvdread_plugin_la_LIBADD = $(DVDREAD_LIBS)
 libdvdread_plugin_la_LDFLAGS = $(AM_LDFLAGS) -rpath '$(accessdir)'
+if HAVE_DARWIN
+libdvdread_plugin_la_LDFLAGS += -Wl,-framework,IOKit,-framework,CoreFoundation
+endif
 access_LTLIBRARIES += $(LTLIBdvdread)
 EXTRA_LTLIBRARIES += libdvdread_plugin.la
 



More information about the vlc-commits mailing list