And the gmodule lib has been moved into the Requires.private
section of the pkg-config file in core.
AC_SUBST(GST_PREFIX)
AC_SUBST(GSTPB_PREFIX)
+dnl Needed by plugins that use g_module_*() API
+PKG_CHECK_MODULES(GMODULE_NO_EXPORT, gmodule-no-export-2.0)
+
dnl *** set variables based on configure arguments ***
dnl set license and copyright notice
plugin_LTLIBRARIES = libgstdvdread.la
libgstdvdread_la_SOURCES = dvdreadsrc.c
-libgstdvdread_la_CFLAGS = $(GST_CFLAGS) $(GST_BASE_CFLAGS) $(DVDREAD_CFLAGS)
-libgstdvdread_la_LIBADD = $(GST_BASE_LIBS) $(DVDREAD_LIBS)
+libgstdvdread_la_CFLAGS = $(GST_BASE_CFLAGS) $(GST_CFLAGS) $(DVDREAD_CFLAGS)
+libgstdvdread_la_LIBADD = $(GST_BASE_LIBS) $(GST_LIBS) \
+ $(GMODULE_NO_EXPORT_LIBS) $(DVDREAD_LIBS)
libgstdvdread_la_LDFLAGS = $(GST_PLUGIN_LDFLAGS)
libgstdvdread_la_LIBTOOLFLAGS = --tag=disable-static