From: Alasdair Kergon Date: Tue, 19 Jan 2010 01:10:46 +0000 (+0000) Subject: more build fixes X-Git-Tag: v2_02_91~2351 X-Git-Url: https://sourceware.org/git/?a=commitdiff_plain;h=f7729ec651b9881f6c7d9ebba66a264c526b821a;p=lvm2.git more build fixes --- diff --git a/daemons/dmeventd/Makefile.in b/daemons/dmeventd/Makefile.in index 2ee872843..d1852050b 100644 --- a/daemons/dmeventd/Makefile.in +++ b/daemons/dmeventd/Makefile.in @@ -64,8 +64,8 @@ dmeventd: $(LIB_SHARED) $(VERSIONED_SHLIB) dmeventd.o $(CC) $(CFLAGS) $(LDFLAGS) -L. -o $@ dmeventd.o \ $(LVMLIBS) $(LIBS) -rdynamic -dmeventd.static: $(LIB_STATIC) dmeventd.o $(interfacedir)/libdevmapper.a - $(CC) $(CFLAGS) $(LDFLAGS) -static -L. -L$(interfacedir) -o $@ \ +dmeventd.static: $(LIB_STATIC) dmeventd.o $(interfacebuilddir)/libdevmapper.a + $(CC) $(CFLAGS) $(LDFLAGS) -static -L. -L$(interfacebuilddir) -o $@ \ dmeventd.o $(LVMLIBS) $(LIBS) -rdynamic ifeq ("@PKGCONFIG@", "yes") diff --git a/libdm/misc/dm-log-userspace.h b/libdm/misc/dm-log-userspace.h index 8a1f972c0..9f71f4b87 100644 --- a/libdm/misc/dm-log-userspace.h +++ b/libdm/misc/dm-log-userspace.h @@ -7,7 +7,7 @@ #ifndef __DM_LOG_USERSPACE_H__ #define __DM_LOG_USERSPACE_H__ -#include /* For DM_UUID_LEN */ +#include "dm-ioctl.h" /* For DM_UUID_LEN */ /* * The device-mapper userspace log module consists of a kernel component and diff --git a/make.tmpl.in b/make.tmpl.in index a6e16de7e..1c3834ec3 100644 --- a/make.tmpl.in +++ b/make.tmpl.in @@ -54,7 +54,7 @@ staticdir = $(DESTDIR)@STATICDIR@ udevdir = $(DESTDIR)@udevdir@ interface = @interface@ -interfacedir = $(top_srcdir)/libdm/$(interface) +interfacebuilddir = $(top_builddir)/libdm/$(interface) # setup misc variables # define the ownership variables for the binaries and man pages diff --git a/tools/Makefile.in b/tools/Makefile.in index fc5faad6a..b650c67f2 100644 --- a/tools/Makefile.in +++ b/tools/Makefile.in @@ -115,8 +115,8 @@ dmsetup: dmsetup.o $(top_builddir)/libdm/libdevmapper.$(LIB_SUFFIX) $(CC) $(CFLAGS) $(LDFLAGS) -L$(top_builddir)/libdm \ -o $@ dmsetup.o -ldevmapper $(LIBS) $(LIB_PTHREAD) -dmsetup.static: dmsetup.o $(interfacedir)/libdevmapper.a - $(CC) $(CFLAGS) $(LDFLAGS) -static -L$(interfacedir) \ +dmsetup.static: dmsetup.o $(interfacebuilddir)/libdevmapper.a + $(CC) $(CFLAGS) $(LDFLAGS) -static -L$(interfacebuilddir) \ -o $@ dmsetup.o -ldevmapper $(LIBS) $(LIB_PTHREAD) all: device-mapper @@ -125,8 +125,8 @@ lvm: $(OBJECTS) lvm.o $(top_builddir)/lib/liblvm-internal.a $(CC) $(CFLAGS) $(LDFLAGS) -o $@ $(OBJECTS) lvm.o \ $(LVMLIBS) $(LIBS) $(LIB_PTHREAD) -rdynamic -lvm.static: $(OBJECTS) lvm-static.o $(top_builddir)/lib/liblvm-internal.a $(interfacedir)/libdevmapper.a - $(CC) $(CFLAGS) $(LDFLAGS) -static -L$(interfacedir) -o $@ \ +lvm.static: $(OBJECTS) lvm-static.o $(top_builddir)/lib/liblvm-internal.a $(interfacebuilddir)/libdevmapper.a + $(CC) $(CFLAGS) $(LDFLAGS) -static -L$(interfacebuilddir) -o $@ \ $(OBJECTS) lvm-static.o $(LVMLIBS) $(LIBS) $(LIB_PTHREAD) \ -rdynamic