This commit adds a target for 'lkvm-static' which is linked -static.

(This can be useful to construct kvmtool binaries for minimalist
auto-test host filesystems.)

Signed-off-by: Matt Evans <[email protected]>
---

Pekka, I found this useful in one of our test setups, hopefully 
others will too.

Cheers, Matt


 tools/kvm/Makefile |    4 ++++
 1 files changed, 4 insertions(+), 0 deletions(-)

diff --git a/tools/kvm/Makefile b/tools/kvm/Makefile
index ce3df65..309cc6b 100644
--- a/tools/kvm/Makefile
+++ b/tools/kvm/Makefile
@@ -233,6 +233,10 @@ $(PROGRAM): $(DEPS) $(OBJS)
        $(E) "  LINK    " $@
        $(Q) $(CC) $(CFLAGS) $(OBJS) $(LIBS) -o $@
 
+$(PROGRAM)-static: $(DEPS) $(OBJS)
+       $(E) "  LINK    " $@
+       $(Q) $(CC) -static $(CFLAGS) $(OBJS) $(LIBS) -o $@
+
 $(PROGRAM_ALIAS): $(PROGRAM)
        $(E) "  LN      " $@
        $(Q) ln -f $(PROGRAM) $@
-- 
1.7.0.4

--
To unsubscribe from this list: send the line "unsubscribe kvm" in
the body of a message to [email protected]
More majordomo info at  http://vger.kernel.org/majordomo-info.html

Reply via email to