Skip to contentSkip to conversation

master - build: ensure libdm is built before dm-tools

PATCH Zdenek Kabelac 1 participant 1 message Jun 14, 2018

lore
Share & tools
lore
#0 lore raw
Gitweb:        https://sourceware.org/git/?p=lvm2.git;a=commitdiff;h=c6be40960917de0e3baab23ab44c64c682895049
Commit:        c6be40960917de0e3baab23ab44c64c682895049
Parent:        327f62a25533c195f4b49a29974f3c5a2f93c15b
Author:        Zdenek Kabelac <[email protected]>
AuthorDate:    Thu Jun 14 20:37:33 2018 +0200
Committer:     Zdenek Kabelac <[email protected]>
CommitterDate: Thu Jun 14 22:02:01 2018 +0200

build: ensure libdm is built before dm-tools

Making libs before entering dm-tools subdir,
so the tool will not link i.e. system library if present.

---
 libdm/Makefile.in |    2 ++
 1 files changed, 2 insertions(+), 0 deletions(-)
libdm/Makefile.in +2 -0
index 6472da7..8c8334a 100644
@@ -62,6 +62,8 @@ LIBS += $(RT_LIBS) $(SELINUX_LIBS) $(UDEV_LIBS) $(PTHREAD_LIBS) $(M_LIBS)
 
 device-mapper: all
 
+dm-tools.device-mapper: $(TARGETS)
+
 libdevmapper.$(LIB_SUFFIX) libdevmapper.$(LIB_SUFFIX).$(LIB_VERSION): $(LIB_SHARED)
 	$(LN_S) -f $< $@