From: Asias He <asias.hejun@gmail.com>
To: Matt Evans <matt@ozlabs.org>
Cc: KVM list <kvm@vger.kernel.org>, Pekka Enberg <penberg@kernel.org>,
Sasha Levin <levinsasha928@gmail.com>
Subject: Re: [PATCH V2] kvm tools: Add build target for statically-linked binary
Date: Mon, 09 Jan 2012 15:51:09 +0800 [thread overview]
Message-ID: <4F0A9C6D.9030003@gmail.com> (raw)
In-Reply-To: <4F0A8D22.1030302@ozlabs.org>
[-- Attachment #1: Type: text/plain, Size: 1462 bytes --]
On 01/09/2012 02:45 PM, 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.)
This is useful. However, It fails to build for me. Some problem with
sdl, bfd and vnc library. Log attached.
>
> Signed-off-by: Matt Evans <matt@ozlabs.org>
> ---
>
> V2: Argh! Let's remove it on make clean, too...
>
> tools/kvm/Makefile | 6 +++++-
> 1 files changed, 5 insertions(+), 1 deletions(-)
>
> diff --git a/tools/kvm/Makefile b/tools/kvm/Makefile
> index d54fa47..ebc0c7c 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) $@
> @@ -325,7 +329,7 @@ clean:
> $(Q) rm -f x86/bios/bios-rom.h
> $(Q) rm -f tests/boot/boot_test.iso
> $(Q) rm -rf tests/boot/rootfs/
> - $(Q) rm -f $(DEPS) $(OBJS) $(PROGRAM) $(PROGRAM_ALIAS) $(GUEST_INIT) $(GUEST_INIT_S2)
> + $(Q) rm -f $(DEPS) $(OBJS) $(PROGRAM) $(PROGRAM_ALIAS) $(PROGRAM)-static $(GUEST_INIT) $(GUEST_INIT_S2)
> $(Q) rm -f cscope.*
> $(Q) rm -f $(KVM_INCLUDE)/common-cmds.h
> $(Q) rm -f KVMTOOLS-VERSION-FILE
--
Asias He
[-- Attachment #2: build.log.gz --]
[-- Type: application/gzip, Size: 9680 bytes --]
next prev parent reply other threads:[~2012-01-09 7:52 UTC|newest]
Thread overview: 8+ messages / expand[flat|nested] mbox.gz Atom feed top
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 [this message]
2012-01-30 3:18 ` Matt Evans
2012-01-30 3:51 ` Sasha Levin
2012-01-30 3:58 ` Matt Evans
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=4F0A9C6D.9030003@gmail.com \
--to=asias.hejun@gmail.com \
--cc=kvm@vger.kernel.org \
--cc=levinsasha928@gmail.com \
--cc=matt@ozlabs.org \
--cc=penberg@kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox