[lvm-devel] [PATCH] trivial build fix: link fsadm against liblvm.a

Nix nix at esperi.org.uk
Wed Sep 12 12:39:08 UTC 2007


Currently it's not, which means that since the introduction of
last_path_component(), it hasn't built.

Fix is trivial:

Index: lvm/tools/fsadm/Makefile.in
===================================================================
RCS file: /cvs/lvm2/LVM2/tools/fsadm/Makefile.in,v
retrieving revision 1.2
diff -u -r1.2 Makefile.in
--- lvm/tools/fsadm/Makefile.in	11 Jan 2007 17:12:27 -0000	1.2
+++ lvm/tools/fsadm/Makefile.in	12 Sep 2007 12:38:07 -0000
@@ -20,10 +20,12 @@
 
 TARGETS = fsadm
 
+LVMLIBS = -llvm
+
 include $(top_srcdir)/make.tmpl
 
 fsadm: $(OBJECTS)
-	$(CC) -o $@ $(CFLAGS) $(OBJECTS) -rdynamic
+	$(CC) -o $@ $(CFLAGS) $(OBJECTS) $(LDFLAGS) $(LVMLIBS) -rdynamic
 
 install: fsadm
 	$(INSTALL) -D $(OWNER) $(GROUP) -m 555 $(STRIP) fsadm \


-- 
`Some people don't think performance issues are "real bugs", and I think 
such people shouldn't be allowed to program.' --- Linus Torvalds




More information about the lvm-devel mailing list