From: Zdenek Kabelac Date: Tue, 11 May 2010 08:41:58 +0000 (+0000) Subject: Plugins do not use pthread or lvm2cmd directly. X-Git-Tag: v2_02_65~29 X-Git-Url: https://sourceware.org/git/?a=commitdiff_plain;h=7a5a31888a3932e1f9c9990e22609f17b90df2b5;p=lvm2.git Plugins do not use pthread or lvm2cmd directly. Plugins are using pthread and lvm2cmd libraries indirectly through devmapper-event-lvm2, so link only with libraries used by them. --- diff --git a/daemons/dmeventd/plugins/mirror/Makefile.in b/daemons/dmeventd/plugins/mirror/Makefile.in index 5966f245a..3c3d468f5 100644 --- a/daemons/dmeventd/plugins/mirror/Makefile.in +++ b/daemons/dmeventd/plugins/mirror/Makefile.in @@ -30,7 +30,7 @@ CFLOW_LIST_TARGET = $(LIB_NAME).cflow include $(top_builddir)/make.tmpl -LIBS += @LVM2CMD_LIB@ -ldevmapper-event-lvm2 -ldevmapper $(PTHREAD_LIBS) +LIBS += -ldevmapper-event-lvm2 -ldevmapper install_lvm2: install_dm_plugin diff --git a/daemons/dmeventd/plugins/snapshot/Makefile.in b/daemons/dmeventd/plugins/snapshot/Makefile.in index 32a74af2b..87a55e747 100644 --- a/daemons/dmeventd/plugins/snapshot/Makefile.in +++ b/daemons/dmeventd/plugins/snapshot/Makefile.in @@ -26,7 +26,7 @@ LIB_VERSION = $(LIB_VERSION_LVM) include $(top_builddir)/make.tmpl -LIBS += @LVM2CMD_LIB@ -ldevmapper-event-lvm2 -ldevmapper $(PTHREAD_LIBS) +LIBS += -ldevmapper-event-lvm2 -ldevmapper install_lvm2: install_dm_plugin