Skip to contentSkip to conversation

LVM2 liblvm/Makefile.in test/api/Makefile.in

PATCH [email protected] 1 participant 1 message Sep 14, 2009

lore
Share & tools
lore
#0 lore raw

CVSROOT: /cvs/lvm2
Module name: LVM2
Changes by: wysochanski at sourceware.org 2009-09-14 22:56:27

Modified files:
liblvm : Makefile.in
test/api : Makefile.in

Log message:
Fix build failure when enabling dmeventd and applib.

This patch fixes a build with options similar to the following:
./configure --enable-debug --enable-applib --enable-dmeventd --enable-cmdlib

Patches:
http://sourceware.org/cgi-bin/cvsweb.cgi/LVM2/liblvm/Makefile.in.diff?cvsroot=lvm2&r1=1.15&r2=1.16
http://sourceware.org/cgi-bin/cvsweb.cgi/LVM2/test/api/Makefile.in.diff?cvsroot=lvm2&r1=1.8&r2=1.9

liblvm/Makefile.in +4 -0
@@ -42,6 +42,10 @@
 
 LIBS += -ldevmapper -llvm-internal
 
+ifeq ("@DMEVENTD@", "yes")
+  LIBS += -ldevmapper-event
+endif
+
 $(VERSIONED_SHLIB): %.$(LIB_SUFFIX).$(LIB_VERSION_APP): %.$(LIB_SUFFIX)
 	rm -f $@
 	$(LN_S) $< $@
test/api/Makefile.in +5 -0
@@ -33,6 +33,11 @@
 
 LDFLAGS = -L$(top_srcdir)/libdm -L$(top_srcdir)/liblvm
 
+ifeq ("@DMEVENTD@", "yes")
+	LVMLIBS += -ldevmapper-event -lpthread
+	LDFLAGS += -L$(top_srcdir)/daemons/dmeventd
+endif
+
 test_OBJECTS = $(test_SOURCES:.c=.o)
 vgtest_OBJECTS = $(vgtest_SOURCES:.c=.o)
 OBJECTS = $(test_OBJECTS) $(vgtest_OBJECTS)