From 79aa89a62a7eacf0fe62ca97df922517cd2af6ec Mon Sep 17 00:00:00 2001 From: Alasdair Kergon Date: Fri, 9 Oct 2009 16:04:54 +0000 Subject: [PATCH] Extra libs must be appended, not defined first. --- daemons/dmeventd/plugins/mirror/Makefile.in | 3 ++- daemons/dmeventd/plugins/snapshot/Makefile.in | 3 ++- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/daemons/dmeventd/plugins/mirror/Makefile.in b/daemons/dmeventd/plugins/mirror/Makefile.in index 581e5ec5d..1fcb5c85f 100644 --- a/daemons/dmeventd/plugins/mirror/Makefile.in +++ b/daemons/dmeventd/plugins/mirror/Makefile.in @@ -19,7 +19,6 @@ VPATH = @srcdir@ INCLUDES += -I${top_srcdir}/tools CLDFLAGS += -L${top_builddir}/tools -LIBS += -ldevmapper @LIB_PTHREAD@ @LVM2CMD_LIB@ SOURCES = dmeventd_mirror.c @@ -33,6 +32,8 @@ LIB_VERSION = $(LIB_VERSION_LVM) include $(top_builddir)/make.tmpl +LIBS += -ldevmapper @LIB_PTHREAD@ @LVM2CMD_LIB@ + install_lvm2: libdevmapper-event-lvm2mirror.$(LIB_SUFFIX) $(INSTALL) -D $(OWNER) $(GROUP) -m 555 $(STRIP) $< \ $(libdir)/$<.$(LIB_VERSION) diff --git a/daemons/dmeventd/plugins/snapshot/Makefile.in b/daemons/dmeventd/plugins/snapshot/Makefile.in index 823ca3fdd..a422314e2 100644 --- a/daemons/dmeventd/plugins/snapshot/Makefile.in +++ b/daemons/dmeventd/plugins/snapshot/Makefile.in @@ -19,7 +19,6 @@ VPATH = @srcdir@ INCLUDES += -I${top_srcdir}/tools CLDFLAGS += -L${top_builddir}/tools -LIBS += -ldevmapper @LIB_PTHREAD@ @LVM2CMD_LIB@ SOURCES = dmeventd_snapshot.c @@ -33,6 +32,8 @@ LIB_VERSION = $(LIB_VERSION_LVM) include $(top_builddir)/make.tmpl +LIBS += -ldevmapper @LIB_PTHREAD@ @LVM2CMD_LIB@ + install_lvm2: libdevmapper-event-lvm2snapshot.$(LIB_SUFFIX) $(INSTALL) -D $(OWNER) $(GROUP) -m 555 $(STRIP) $< \ $(libdir)/$<.$(LIB_VERSION) -- 2.43.5