From 232918fb86e1ee254ae5e4c9aece4615d828c9bb Mon Sep 17 00:00:00 2001 From: Joe Thornber Date: Mon, 4 Jun 2018 13:53:07 +0100 Subject: [PATCH] build: libbase.a --- Makefile.in | 1 + daemons/clvmd/Makefile.in | 2 +- daemons/dmeventd/Makefile.in | 2 +- daemons/lvmetad/Makefile.in | 8 ++++---- daemons/lvmlockd/Makefile.in | 6 ++---- daemons/lvmpolld/Makefile.in | 3 +-- lib/Makefile.in | 1 - libdm/make.tmpl.in | 4 ++-- make.tmpl.in | 8 ++++++-- scripts/Makefile.in | 4 ++-- test/api/Makefile.in | 3 +-- test/unit/Makefile.in | 2 +- tools/Makefile.in | 8 ++++---- 13 files changed, 26 insertions(+), 26 deletions(-) diff --git a/Makefile.in b/Makefile.in index 851447ec0..7eb6460e2 100644 --- a/Makefile.in +++ b/Makefile.in @@ -214,6 +214,7 @@ endif include test/unit/Makefile include $(top_srcdir)/device_mapper/Makefile +include $(top_srcdir)/base/Makefile ifneq ($(shell which ctags),) .PHONY: tags diff --git a/daemons/clvmd/Makefile.in b/daemons/clvmd/Makefile.in index 9e096b5b9..622a60366 100644 --- a/daemons/clvmd/Makefile.in +++ b/daemons/clvmd/Makefile.in @@ -80,7 +80,7 @@ CFLAGS += -fno-strict-aliasing $(EXTRA_EXEC_CFLAGS) INSTALL_TARGETS = \ install_clvmd -clvmd: $(OBJECTS) $(top_builddir)/lib/liblvm-internal.a $(top_builddir)/device_mapper/libdevice-mapper.a +clvmd: $(OBJECTS) $(top_builddir)/lib/liblvm-internal.a $(INTERNAL_LIBS) $(CC) $(CFLAGS) $(LDFLAGS) $(EXTRA_EXEC_LDFLAGS) $(ELDFLAGS) \ -o clvmd $+ $(LMLIBS) $(LIBS) diff --git a/daemons/dmeventd/Makefile.in b/daemons/dmeventd/Makefile.in index e43bb2b2a..56a9e3590 100644 --- a/daemons/dmeventd/Makefile.in +++ b/daemons/dmeventd/Makefile.in @@ -61,7 +61,7 @@ LIBS += $(PTHREAD_LIBS) dmeventd: $(LIB_SHARED) dmeventd.o $(CC) $(CFLAGS) -L. $(LDFLAGS) $(EXTRA_EXEC_LDFLAGS) $(ELDFLAGS) dmeventd.o \ - -o $@ $(DL_LIBS) $(DMEVENT_LIBS) $(top_builddir)/device_mapper/libdevice-mapper.a $(LIBS) -lm + -o $@ $(DL_LIBS) $(DMEVENT_LIBS) $(INTERNAL_LIBS) $(LIBS) -lm dmeventd.static: $(LIB_STATIC) dmeventd.o $(CC) $(CFLAGS) $(LDFLAGS) -static -L. -L$(interfacebuilddir) dmeventd.o \ diff --git a/daemons/lvmetad/Makefile.in b/daemons/lvmetad/Makefile.in index f652db8bf..5738bbe0f 100644 --- a/daemons/lvmetad/Makefile.in +++ b/daemons/lvmetad/Makefile.in @@ -36,13 +36,13 @@ LIBS += $(RT_LIBS) $(DAEMON_LIBS) $(PTHREAD_LIBS) -lm lvmetad: $(OBJECTS) $(top_builddir)/libdaemon/client/libdaemonclient.a \ $(top_builddir)/libdaemon/server/libdaemonserver.a \ - $(top_builddir)/device_mapper/libdevice-mapper.a - $(CC) $(CFLAGS) $(LDFLAGS) -o $@ $(OBJECTS) $(top_builddir)/device_mapper/libdevice-mapper.a -ldaemonserver $(LIBS) + $(INTERNAL_LIBS) + $(CC) $(CFLAGS) $(LDFLAGS) -o $@ $(OBJECTS) -ldaemonserver $(INTERNAL_LIBS) $(LIBS) lvmetactl: lvmetactl.o $(top_builddir)/libdaemon/client/libdaemonclient.a \ $(top_builddir)/libdaemon/server/libdaemonserver.a \ - $(top_builddir)/device_mapper/libdevice-mapper.a - $(CC) $(CFLAGS) $(LDFLAGS) -o $@ lvmetactl.o $(top_builddir)/device_mapper/libdevice-mapper.a $(LIBS) + $(INTERNAL_LIBS) + $(CC) $(CFLAGS) $(LDFLAGS) -o $@ lvmetactl.o $(INTERNAL_LIBS) $(LIBS) CLEAN_TARGETS += lvmetactl.o diff --git a/daemons/lvmlockd/Makefile.in b/daemons/lvmlockd/Makefile.in index 7c58fe25b..6dcc207db 100644 --- a/daemons/lvmlockd/Makefile.in +++ b/daemons/lvmlockd/Makefile.in @@ -42,12 +42,10 @@ LIBS += $(RT_LIBS) $(DAEMON_LIBS) $(PTHREAD_LIBS) lvmlockd: $(OBJECTS) $(top_builddir)/libdaemon/client/libdaemonclient.a \ $(top_builddir)/libdaemon/server/libdaemonserver.a - $(CC) $(CFLAGS) $(LDFLAGS) -o $@ $(OBJECTS) $(LOCK_LIBS) -ldaemonserver \ - $(top_builddir)/device_mapper/libdevice-mapper.a $(LIBS) + $(CC) $(CFLAGS) $(LDFLAGS) -o $@ $(OBJECTS) $(LOCK_LIBS) -ldaemonserver $(INTERNAL_LIBS) $(LIBS) lvmlockctl: lvmlockctl.o $(top_builddir)/libdaemon/client/libdaemonclient.a - $(CC) $(CFLAGS) $(LDFLAGS) -o $@ lvmlockctl.o \ - $(top_builddir)/device_mapper/libdevice-mapper.a $(LIBS) + $(CC) $(CFLAGS) $(LDFLAGS) -o $@ lvmlockctl.o $(INTERNAL_LIBS) $(LIBS) install_lvmlockd: lvmlockd $(INSTALL_PROGRAM) -D $< $(sbindir)/$(