summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSimon McVittie <simon.mcvittie@collabora.co.uk>2014-03-26 08:10:17 +0000
committerSimon McVittie <simon.mcvittie@collabora.co.uk>2014-03-27 09:20:49 +0000
commit4b94612f305e4e4991e863db1a6ff837bf06cf6b (patch)
treedc0ca7307355a3e15a8ae9679934f863ac2bbc33
parenteb9d0e1087f49abb608f771dca50753f2b19b668 (diff)
tests: link plugin libraries to their dependencies
-rw-r--r--tests/twisted/Makefile.am17
1 files changed, 16 insertions, 1 deletions
diff --git a/tests/twisted/Makefile.am b/tests/twisted/Makefile.am
index 9d754f82..68e42ccf 100644
--- a/tests/twisted/Makefile.am
+++ b/tests/twisted/Makefile.am
@@ -186,7 +186,7 @@ plugins_list = \
libgiofakenetworkmonitor.la \
$(NULL)
-plugin_ldflags = -module -shared -avoid-version
+plugin_ldflags = -module -shared -avoid-version -no-undefined
if ENABLE_INSTALLED_TESTS
@@ -214,14 +214,29 @@ mcp_plugin_la_SOURCES = \
dbus-account-plugin.h \
mcp-plugin.c \
$(NULL)
+mcp_plugin_la_LIBADD = \
+ $(top_builddir)/mission-control-plugins/libmission-control-plugins-6.la \
+ $(TELEPATHY_LIBS) \
+ $(DBUS_LIBS) \
+ $(GLIB_LIBS) \
+ $(NULL)
mcp_plugin_la_LDFLAGS = $(plugin_ldflags)
libgiofakenetworkmonitor_la_SOURCES = \
fake-network-monitor.c \
$(NULL)
+libgiofakenetworkmonitor_la_LIBADD = \
+ $(GLIB_LIBS) \
+ $(NULL)
libgiofakenetworkmonitor_la_LDFLAGS = $(plugin_ldflags)
mcp_account_diversion_la_SOURCES = mcp-account-diversion.c
+mcp_account_diversion_la_LIBADD = \
+ $(top_builddir)/mission-control-plugins/libmission-control-plugins-6.la \
+ $(TELEPATHY_LIBS) \
+ $(DBUS_LIBS) \
+ $(GLIB_LIBS) \
+ $(NULL)
mcp_account_diversion_la_LDFLAGS = $(plugin_ldflags)
# A debug version of the normal MC executable, which exits cleanly on