From mboxrd@z Thu Jan 1 00:00:00 1970 From: Asias He Subject: Re: [PATCH V3] kvm tools: Add build target for statically-linked binary Date: Thu, 02 Feb 2012 11:03:02 +0800 Message-ID: <4F29FCE6.2080309@gmail.com> References: <4F29F946.7050504@ozlabs.org> Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit Cc: KVM list , Pekka Enberg , Sasha Levin To: Matt Evans Return-path: Received: from mail-iy0-f174.google.com ([209.85.210.174]:45621 "EHLO mail-iy0-f174.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1754857Ab2BBDDx (ORCPT ); Wed, 1 Feb 2012 22:03:53 -0500 Received: by iacb35 with SMTP id b35so2419228iac.19 for ; Wed, 01 Feb 2012 19:03:53 -0800 (PST) In-Reply-To: <4F29F946.7050504@ozlabs.org> Sender: kvm-owner@vger.kernel.org List-ID: On 02/02/2012 10:47 AM, Matt Evans wrote: > 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.) > > Since extra features (SDL, AIO, VNC etc.) are auto-detected in the makefile > AND some features may only work when linked one way (but not both), the > feature detection now checks for both dynamic & static success. Intermediate > objects build with correct flags (e.g. CONFIG_HAS_AIO) for the end target. > > Signed-off-by: Matt Evans > --- > > V3: OK, I solved the problem of "probe for dynamic optional lib, fail to > link it statically" with a second set of probes, for static optional libs, > with appropriate dependencies to tie all this back to lkvm-static. This version works for me. Thanks Matt! -- Asias He