From mboxrd@z Thu Jan 1 00:00:00 1970 From: Matt Evans Subject: [PATCH] kvm tools: Add build target for statically-linked binary Date: Mon, 09 Jan 2012 16:10:05 +1100 Message-ID: <4F0A76AD.6070506@ozlabs.org> Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Cc: Pekka Enberg , Sasha Levin To: KVM list Return-path: Received: from ozlabs.org ([203.10.76.45]:58975 "EHLO ozlabs.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1750744Ab2AIFHr (ORCPT ); Mon, 9 Jan 2012 00:07:47 -0500 Sender: kvm-owner@vger.kernel.org List-ID: 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 --- 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