From: "Michael S. Tsirkin" <mst@redhat.com>
To: Paolo Bonzini <pbonzini@redhat.com>
Cc: Michael Tokarev <mjt@tls.msk.ru>,
Victor Kaplansky <victork@redhat.com>,
Fam Zheng <famz@redhat.com>,
qemu-devel@nongnu.org
Subject: Re: [Qemu-devel] [PATCH] rules: filter out irrelevant files
Date: Wed, 17 Feb 2016 17:18:15 +0200 [thread overview]
Message-ID: <20160217171657-mutt-send-email-mst@redhat.com> (raw)
In-Reply-To: <56C48ECF.8030903@redhat.com>
On Wed, Feb 17, 2016 at 04:16:31PM +0100, Paolo Bonzini wrote:
>
>
> 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
Write a test that uses vhost-user to talk to a background
process helper (e.g. vhost-user-bridge).
This has to depend on the helper being built.
> > 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)$@")
> >
prev parent reply other threads:[~2016-02-17 15:18 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
2016-02-17 15:18 ` Michael S. Tsirkin [this message]
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=20160217171657-mutt-send-email-mst@redhat.com \
--to=mst@redhat.com \
--cc=famz@redhat.com \
--cc=mjt@tls.msk.ru \
--cc=pbonzini@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.