Skip to contentSkip to conversation

master - makefiles: link blkid library only to lvm

PATCH Zdenek Kabelac 1 participant 1 message Mar 6, 2014

lore
Share & tools
lore
#0 lore raw
Gitweb:        http://git.fedorahosted.org/git/?p=lvm2.git;a=commitdiff;h=d5a00c459734e6db0f739764e853424379e8c767
Commit:        d5a00c459734e6db0f739764e853424379e8c767
Parent:        7a595d7388d2dfdb4253ef9425c812491c8e7af5
Author:        Zdenek Kabelac <[email protected]>
AuthorDate:    Thu Mar 6 16:26:18 2014 +0100
Committer:     Zdenek Kabelac <[email protected]>
CommitterDate: Thu Mar 6 17:30:10 2014 +0100

makefiles: link blkid library only to lvm

Don't add blkid to every linkage.
Link udev library just with lvm tools.
Drop extra linkage of udev library, since deps from libdevmapper are already resolved in linked -ldevmapper.

---
 tools/Makefile.in |    4 +---
 1 files changed, 1 insertions(+), 3 deletions(-)
tools/Makefile.in +1 -3
index 253c404..1a8db36 100644
@@ -118,11 +118,9 @@ CFLOW_TARGET = lvm
 
 include $(top_builddir)/make.tmpl
 
-LIBS += $(UDEV_LIBS) $(BLKID_LIBS)
-
 device-mapper: $(TARGETS_DM)
 
-CFLAGS_dmsetup.o += $(EXTRA_EXEC_CFLAGS)
+CFLAGS_dmsetup.o += $(UDEV_CFLAGS) $(EXTRA_EXEC_CFLAGS)
 
 dmsetup: dmsetup.o $(top_builddir)/libdm/libdevmapper.$(LIB_SUFFIX)
 	$(CC) $(CFLAGS) $(LDFLAGS) $(EXTRA_EXEC_LDFLAGS) -L$(top_builddir)/libdm \