Skip to contentSkip to conversation

LVM2/test/api Makefile.in

PATCH [email protected] 1 participant 1 message Nov 23, 2011

lore
Share & tools
lore
#0 lore raw

CVSROOT: /cvs/lvm2
Module name: LVM2
Changes by: zkabelac at sourceware.org 2011-11-23 13:02:17

Modified files:
test/api : Makefile.in

Log message:
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).

Patches:
http://sourceware.org/cgi-bin/cvsweb.cgi/LVM2/test/api/Makefile.in.diff?cvsroot=lvm2&r1=1.23&r2=1.24

test/api/Makefile.in +8 -1
@@ -28,7 +28,14 @@
 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)