From: Paolo Bonzini <pbonzini@redhat.com>
To: "Michael S. Tsirkin" <mst@redhat.com>, qemu-devel@nongnu.org
Cc: Michael Tokarev <mjt@tls.msk.ru>,
Victor Kaplansky <victork@redhat.com>,
Fam Zheng <famz@redhat.com>
Subject: Re: [Qemu-devel] [PATCH] rules: filter out irrelevant files
Date: Wed, 17 Feb 2016 16:16:31 +0100 [thread overview]
Message-ID: <56C48ECF.8030903@redhat.com> (raw)
In-Reply-To: <1455722040-31820-1-git-send-email-mst@redhat.com>
On 17/02/2016 16:15, Michael S. Tsirkin wrote:
> It's often handy to make executables depend on each other, e.g. make a
> test depend on a helper. This doesn't work now, as linker
> will attempt to use the helper as an object.
> To fix, filter only relevant file types before linking an executable.
Can you provide an example of what you're trying to do?
Paolo
> Signed-off-by: Michael S. Tsirkin <mst@redhat.com>
> ---
> rules.mak | 2 +-
> 1 file changed, 1 insertion(+), 1 deletion(-)
>
> diff --git a/rules.mak b/rules.mak
> index fc5ee41..d1ff311 100644
> --- a/rules.mak
> +++ b/rules.mak
> @@ -102,7 +102,7 @@ LD_REL := $(CC) -nostdlib -Wl,-r
> modules:
>
> %$(EXESUF): %.o
> - $(call LINK,$^)
> + $(call LINK,$(filter %.o %.a %.mo, $^))
>
> %.a:
> $(call quiet-command,rm -f $@ && $(AR) rcs $@ $^," AR $(TARGET_DIR)$@")
>
next prev parent reply other threads:[~2016-02-17 15:16 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2016-02-17 15:15 [Qemu-devel] [PATCH] rules: filter out irrelevant files Michael S. Tsirkin
2016-02-17 15:16 ` Paolo Bonzini [this message]
2016-02-17 15:18 ` Michael S. Tsirkin
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=56C48ECF.8030903@redhat.com \
--to=pbonzini@redhat.com \
--cc=famz@redhat.com \
--cc=mjt@tls.msk.ru \
--cc=mst@redhat.com \
--cc=qemu-devel@nongnu.org \
--cc=victork@redhat.com \
/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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.