]> git.sesse.net Git - vlc/blobdiff - modules/genmf
modules/macosx/playlist.m: Remove code that shouldn't be here, to re-enable services...
[vlc] / modules / genmf
index c4a6624c2c0f6d427d9359f85f39abfa8d3c7f9b..94e24c0c5eb33d8fb241f98786bafc01f5302cf6 100755 (executable)
@@ -46,14 +46,14 @@ EXTRA_LTLIBRARIES = ${extra_ltlibs}
 include Modules.am
 
 if HAVE_PLUGINS
-LTLIBVLC = -L\$(top_builddir)/src -lvlc
+LTLIBVLC = \$(top_builddir)/src/libvlc.la
 
 AM_LDFLAGS = -rpath '\$(libvlcdir)' -avoid-version \\
        -module -no-undefined -shrext \$(LIBEXT) 
 if HAVE_COMPILER_EXPORT
 AM_LDFLAGS += -export-dynamic
 else
-AM_LDFLAGS += -export-symbol-regex ^\$(VLC_ENTRY)\$\$
+AM_LDFLAGS += -export-symbol-regex ^vlc_entry
 endif
 AM_LIBADD = \$(LTLIBVLC)
 endif
@@ -141,8 +141,12 @@ EOF
 lib${mod}_plugin_la_CFLAGS = \`\$(VLC_CONFIG) --cflags plugin ${mod}\`
 lib${mod}_plugin_la_CXXFLAGS = \`\$(VLC_CONFIG) --cxxflags plugin ${mod}\`
 lib${mod}_plugin_la_OBJCFLAGS = \`\$(VLC_CONFIG) --objcflags plugin ${mod}\`
-lib${mod}_plugin_la_LDFLAGS = \`\$(VLC_CONFIG) --libs plugin ${mod}\` \$(AM_LDFLAGS)
-lib${mod}_plugin_la_LIBADD = \$(AM_LIBADD)
+lib${mod}_plugin_la_LDFLAGS = \$(AM_LDFLAGS) \\
+       \`\$(VLC_CONFIG) --ldflags plugin ${mod}\`
+lib${mod}_plugin_la_LIBADD = \$(AM_LIBADD) \\
+       \`\$(VLC_CONFIG) -libs plugin ${mod}\` 
+# Automake does not understand \`...\` very well inside LIBADD...
+lib${mod}_plugin_la_DEPENDENCIES = \$(AM_LIBADD)
 EOF
   done