[vlc-commits] npapi: do not link Objective C(++) into the main library (fixes #10507)

Rémi Denis-Courmont git at videolan.org
Wed Apr 9 18:53:19 CEST 2014


npapi-vlc | branch: master | Rémi Denis-Courmont <remi at remlab.net> | Wed Apr  9 19:52:49 2014 +0300| [1f6cf3efd0be187ea8cfc4455fcfa58f2799ea52] | committer: Rémi Denis-Courmont

npapi: do not link Objective C(++) into the main library (fixes #10507)

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

 npapi/Makefile.am |    7 ++++++-
 1 file changed, 6 insertions(+), 1 deletion(-)

diff --git a/npapi/Makefile.am b/npapi/Makefile.am
index 375aab3..f993dda 100644
--- a/npapi/Makefile.am
+++ b/npapi/Makefile.am
@@ -124,11 +124,16 @@ AM_CPPFLAGS += -I. -I$(top_builddir) -c \
 	-DXP_UNIX -DXP_MACOSX=1 \
 	-DNO_X11=1 -DUSE_SYSTEM_CONSOLE=1 -pipe -fmessage-length=0
 
+libvlcplugin_objc_la_SOURCES = \
+	vlcplugin_mac.mm vlcplugin_mac.h
+libvlcplugin_objc_la_LDFLAGS = -static
+noinst_LTLIBRARIES = libvlcplugin_objc.la
+
 libvlcplugin_la_SOURCES += \
-	vlcplugin_mac.mm vlcplugin_mac.h \
 	vlcwindowless_base.cpp vlcwindowless_base.h \
 	vlcwindowless_mac.cpp vlcwindowless_mac.h \
 	support/npmac.cpp
+libvlcplugin_la_LIBADD += libvlcplugin_objc.la
 libvlcplugin_la_LDFLAGS += \
 	-bundle -Wl,-headerpad_max_install_names \
 	-Wl,-framework,CoreFoundation -Wl,-framework,ApplicationServices \



More information about the vlc-commits mailing list