summaryrefslogtreecommitdiffstats
path: root/tools/Makefile.in
diff options
context:
space:
mode:
Diffstat (limited to 'tools/Makefile.in')
-rw-r--r--tools/Makefile.in9
1 files changed, 7 insertions, 2 deletions
diff --git a/tools/Makefile.in b/tools/Makefile.in
index 8886d710..489ad9d9 100644
--- a/tools/Makefile.in
+++ b/tools/Makefile.in
@@ -70,12 +70,17 @@ endif
include ../make.tmpl
+ifeq ("@STATIC_LINK@", "no")
+ LVMLIBS += -rdynamic
+endif
+
lvm: $(OBJECTS) $(top_srcdir)/lib/liblvm.a
$(CC) -o lvm $(OBJECTS) $(LD_FLAGS) -L$(top_srcdir)/lib \
- -L$(DESTDIR)/lib $(LVMLIBS) $(LIBS) -rdynamic
+ -L$(DESTDIR)/lib $(LVMLIBS) $(LIBS)
.commands: commands.h cmdnames.h Makefile
- $(CC) -E -P cmdnames.h | egrep -v '(help|version)' > .commands
+ $(CC) -E -P cmdnames.h 2> /dev/null | \
+ egrep -v '^ *(|#.*|help|version) *$$' > .commands
install: $(TARGETS)
$(INSTALL) -D -o $(OWNER) -g $(GROUP) -m 555 $(STRIP) lvm \