From 5a036adb326ddc4e9840a0b8b0cbcc7044d8eac6 Mon Sep 17 00:00:00 2001 From: Zdenek Kabelac Date: Wed, 23 Nov 2011 13:02:17 +0000 Subject: [PATCH] Put back devmapper-event linkage Older systems are not able to get this library from lvm2api library and need this library to be passed to the linker (i.e. Debian Lenny). --- test/api/Makefile.in | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/test/api/Makefile.in b/test/api/Makefile.in index cf3c872b7..8aa0b15c5 100644 --- a/test/api/Makefile.in +++ b/test/api/Makefile.in @@ -28,7 +28,14 @@ include $(top_builddir)/make.tmpl DEFS += -D_REENTRANT DEPLIBS += $(top_builddir)/liblvm/liblvm2app.so $(top_builddir)/libdm/libdevmapper.so LDFLAGS += -L$(top_builddir)/liblvm -LVMLIBS = @LVM2APP_LIB@ -ldevmapper $(LIBS) +LVMLIBS = @LVM2APP_LIB@ -ldevmapper + +ifeq ("@DMEVENTD@", "yes") + LVMLIBS += -ldevmapper-event + LDFLAGS += -L$(top_builddir)/daemons/dmeventd +endif + +LVMLIBS += $(LIBS) %.t: %.o $(DEPLIBS) $(CC) -o $@ $(<) $(LDFLAGS) $(LVMLIBS) -- 2.43.5