[vlc-commits] npapi/makefile: fix linking libvlc for OSX

Felix Paul Kühne git at videolan.org
Tue Jan 28 18:55:32 CET 2014


npapi-vlc | branch: master | Felix Paul Kühne <fkuehne at videolan.org> | Tue Jan 28 18:37:11 2014 +0100| [9d60b056cb3b78bb61e66d471656c239a8dd322a] | committer: Felix Paul Kühne

npapi/makefile: fix linking libvlc for OSX

This allows the plugin to be installed in the user directory as well in addition to the system library folder (wow..)

> http://git.videolan.org/gitweb.cgi/npapi-vlc.git/?a=commit;h=9d60b056cb3b78bb61e66d471656c239a8dd322a
---

 npapi/Makefile.am |    2 ++
 1 file changed, 2 insertions(+)

diff --git a/npapi/Makefile.am b/npapi/Makefile.am
index a7feabc..9877f9b 100644
--- a/npapi/Makefile.am
+++ b/npapi/Makefile.am
@@ -163,6 +163,8 @@ VLC-Plugin.plugin: $(lib_LTLIBRARIES)
 	$(INSTALL) "$(top_builddir)/npapi/.libs/npvlc.dylib" "$(top_builddir)/VLC-Plugin.plugin/Contents/MacOS/"
 	mv $(top_builddir)/VLC-Plugin.plugin/Contents/MacOS/npvlc.dylib "$(top_builddir)/VLC-Plugin.plugin/Contents/MacOS/VLC-Plugin"
 	chmod +x "$(top_builddir)/VLC-Plugin.plugin/Contents/MacOS/VLC-Plugin"
+	install_name_tool -change $(LIBVLC_PREFIX)/lib/libvlc.5.dylib @loader_path/lib/libvlc.5.dylib $(top_builddir)/VLC-Plugin.plugin/Contents/MacOS/VLC-Plugin
+	install_name_tool -change $(LIBVLC_PREFIX)/lib/libvlccore.7.dylib @loader_path/lib/libvlccore.7.dylib $(top_builddir)/VLC-Plugin.plugin/Contents/MacOS/VLC-Plugin
 	find "$(top_builddir)/VLC-Plugin.plugin" -type d -exec chmod ugo+rx '{}' \;
 	find "$(top_builddir)/VLC-Plugin.plugin" -type f -exec chmod ugo+r '{}' \;
 



More information about the vlc-commits mailing list