[vlc-devel] [PATCH] fluidsynth: fix linking on osx

david.fuhrmann at gmail.com david.fuhrmann at gmail.com
Sat Dec 7 10:41:39 CET 2013


From: David Fuhrmann <david.fuhrmann at googlemail.com>

(manual backport of 62f25ef1c0180f307a50837e12e5fab358e29275)
---

Patch against vlc-2.1.git.

 modules/codec/Modules.am | 12 +++++++++++-
 1 file changed, 11 insertions(+), 1 deletion(-)

diff --git a/modules/codec/Modules.am b/modules/codec/Modules.am
index a93dac7..1d5a858 100644
--- a/modules/codec/Modules.am
+++ b/modules/codec/Modules.am
@@ -41,7 +41,6 @@ SOURCES_cvdsub = cvdsub.c
 SOURCES_sdl_image = sdl_image.c
 SOURCES_zvbi = zvbi.c
 SOURCES_cdg = cdg.c
-SOURCES_fluidsynth = fluidsynth.c
 SOURCES_cc = cc.c cc.h substext.h
 SOURCES_kate = kate.c
 SOURCES_schroedinger = schroedinger.c
@@ -211,3 +210,14 @@ if HAVE_ANDROID
 libvlc_LTLIBRARIES += libiomx_plugin.la libmediacodec_plugin.la
 endif
 
+## fluidsynth ##
+libfluidsynth_plugin_la_SOURCES = fluidsynth.c
+libfluidsynth_plugin_la_CFLAGS = $(AM_CFLAGS) $(CFLAGS_fluidsynth)
+libfluidsynth_plugin_la_LIBADD = $(AM_LIBADD) $(LIBS_fluidsynth)
+libfluidsynth_plugin_la_LDFLAGS = $(AM_LDFLAGS) $(LDFLAGS_fluidsynth)
+if HAVE_DARWIN
+libfluidsynth_plugin_la_LDFLAGS += -Wl,-framework,CoreFoundation,-framework,CoreServices
+endif
+
+libvlc_LTLIBRARIES += $(LTLIBfluidsynth)
+EXTRA_LTLIBRARIES += libfluidsynth_plugin.la
-- 
1.8.3.4 (Apple Git-47)




More information about the vlc-devel mailing list