From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([140.186.70.92]:35375) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1R2zxE-00015p-DM for qemu-devel@nongnu.org; Mon, 12 Sep 2011 02:25:17 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1R2zxD-0007h1-3V for qemu-devel@nongnu.org; Mon, 12 Sep 2011 02:25:16 -0400 Received: from mail-ww0-f53.google.com ([74.125.82.53]:49409) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1R2zxC-0007gq-QH for qemu-devel@nongnu.org; Mon, 12 Sep 2011 02:25:15 -0400 Received: by wwg14 with SMTP id 14so2125210wwg.10 for ; Sun, 11 Sep 2011 23:25:13 -0700 (PDT) Sender: Paolo Bonzini Message-ID: <4E6DA5C6.7010607@redhat.com> Date: Mon, 12 Sep 2011 08:25:10 +0200 From: Paolo Bonzini MIME-Version: 1.0 References: <1315756545-25630-1-git-send-email-weil@mail.berlios.de> <4E6D0248.7070803@mail.berlios.de> In-Reply-To: <4E6D0248.7070803@mail.berlios.de> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Subject: Re: [Qemu-devel] [PATCH] pkg-config: Add a pkg-config script for cross compilations List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Stefan Weil Cc: qemu-devel@nongnu.org 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