if HAVE_PLUGINS
LTLIBVLC = $(top_builddir)/src/libvlc.la
+AM_CFLAGS = `$(VLC_CONFIG) --cflags plugin $@`
+AM_CXXFLAGS = `$(VLC_CONFIG) --cxxflags plugin $@`
+AM_OBJCFLAGS = `$(VLC_CONFIG) --objcflags plugin $@`
AM_LDFLAGS = -rpath '$(libvlcdir)' \
-avoid-version -module -no-undefined \
- -shrext $(LIBEXT)
+ -shrext $(LIBEXT) \
+ `$(VLC_CONFIG) --ldflags plugin $@`
+AM_LIBADD = $(LTLIBVLC)
+
if HAVE_COMPILER_EXPORT
AM_LDFLAGS += -export-dynamic
else
AM_LDFLAGS += -export-symbol-regex ^vlc_entry
endif
-AM_LIBADD = $(LTLIBVLC)
endif
all: all-modules