public inbox for kvm@vger.kernel.org
 help / color / mirror / Atom feed
* [PATCH] kvm tools: Add build target for statically-linked binary
@ 2012-01-09  5:10 Matt Evans
  2012-01-09  6:45 ` [PATCH V2] " Matt Evans
  0 siblings, 1 reply; 8+ messages in thread
From: Matt Evans @ 2012-01-09  5:10 UTC (permalink / raw)
  To: KVM list; +Cc: Pekka Enberg, Sasha Levin

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 <matt@ozlabs.org>
---

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


^ permalink raw reply related	[flat|nested] 8+ messages in thread

end of thread, other threads:[~2012-01-30  3:58 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2012-01-09  5:10 [PATCH] kvm tools: Add build target for statically-linked binary Matt Evans
2012-01-09  6:45 ` [PATCH V2] " Matt Evans
2012-01-09  7:07   ` Pekka Enberg
2012-01-09 12:09     ` Sasha Levin
2012-01-09  7:51   ` Asias He
2012-01-30  3:18     ` Matt Evans
2012-01-30  3:51       ` Sasha Levin
2012-01-30  3:58         ` Matt Evans

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox