summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorZdenek Kabelac <zkabelac@redhat.com>2011-11-23 13:02:17 +0000
committerZdenek Kabelac <zkabelac@redhat.com>2011-11-23 13:02:17 +0000
commit5a036adb326ddc4e9840a0b8b0cbcc7044d8eac6 (patch)
tree532574da7c6df99f3b14ee11dfa1374de168c521
parent4b42d7ae98e7db89e8b404338304daf048dfbf69 (diff)
downloadlvm2-5a036adb326ddc4e9840a0b8b0cbcc7044d8eac6.tar.gz
lvm2-5a036adb326ddc4e9840a0b8b0cbcc7044d8eac6.tar.xz
lvm2-5a036adb326ddc4e9840a0b8b0cbcc7044d8eac6.zip
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).
-rw-r--r--test/api/Makefile.in9
1 files changed, 8 insertions, 1 deletions
diff --git a/test/api/Makefile.in b/test/api/Makefile.in
index cf3c872b..8aa0b15c 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)