From: Paolo Bonzini <pbonzini@redhat.com>
To: Stefan Weil <weil@mail.berlios.de>
Cc: qemu-devel@nongnu.org
Subject: Re: [Qemu-devel] [PATCH] pkg-config: Add a pkg-config script for cross compilations
Date: Mon, 12 Sep 2011 08:25:10 +0200 [thread overview]
Message-ID: <4E6DA5C6.7010607@redhat.com> (raw)
In-Reply-To: <4E6D0248.7070803@mail.berlios.de>
On 09/11/2011 08:47 PM, Stefan Weil wrote:
> Well, Redhat has a large interest in QEMU, so I assume that Fedora
> is better prepared for cross compilations than most other distributions.
Why are the two related? :) Fedora's cross compilation machinery is
indeed used by Red Hat for some virt-related stuff, but not for QEMU
even though I used it successfully for it. In fact, Fedora-mingw32
started as a special interest group entirely outside Red Hat.
> Does it also provide cross glib-2.0, sdl, zlib, ...?
Yes.
> How does it implement cross pkg-config? As a binary compiled from source,
> or as a script using native pkg-config?
It's a script doing basically
PKG_CONFIG_LIBDIR="/usr/i686-pc-mingw32/sys-root/mingw/lib/pkgconfig:/usr/i686-pc-mingw32/sys-root/mingw/share/pkgconfig"
pkg-config "$@"
> How about other distributions? Are there others beside Fedora
> with good cross dev support? Some large embedded projects still build
> their own cross toolchain instead of using precompiled binaries.
> For all those which don't have a cross pkg-config, the script
> saves the time and memory needed for building it.
Yes, I agree. However, I still think it's better to prepare
documentation about how to cross compile (including fetching
dependencies etc.), and embed the script in the document.
Paolo
prev parent reply other threads:[~2011-09-12 6:25 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2011-09-11 15:55 [Qemu-devel] [PATCH] pkg-config: Add a pkg-config script for cross compilations Stefan Weil
2011-09-11 17:31 ` Peter Maydell
2011-09-11 18:25 ` [Qemu-devel] [PATCH v2] " Stefan Weil
2011-09-16 13:09 ` Anthony Liguori
2011-09-11 18:25 ` [Qemu-devel] [PATCH] " Paolo Bonzini
2011-09-11 18:47 ` Stefan Weil
2011-09-12 6:25 ` Paolo Bonzini [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=4E6DA5C6.7010607@redhat.com \
--to=pbonzini@redhat.com \
--cc=qemu-devel@nongnu.org \
--cc=weil@mail.berlios.de \
/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;
as well as URLs for NNTP newsgroup(s).