From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1MG1nw-00024b-Dp for qemu-devel@nongnu.org; Sun, 14 Jun 2009 22:20:12 -0400 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1MG1nr-00024P-Ka for qemu-devel@nongnu.org; Sun, 14 Jun 2009 22:20:11 -0400 Received: from [199.232.76.173] (port=60665 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1MG1nr-00024M-Ie for qemu-devel@nongnu.org; Sun, 14 Jun 2009 22:20:07 -0400 Received: from e38.co.us.ibm.com ([32.97.110.159]:60795) by monty-python.gnu.org with esmtps (TLS-1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1MG1nr-00025M-9s for qemu-devel@nongnu.org; Sun, 14 Jun 2009 22:20:07 -0400 Received: from d03relay02.boulder.ibm.com (d03relay02.boulder.ibm.com [9.17.195.227]) by e38.co.us.ibm.com (8.13.1/8.13.1) with ESMTP id n5F2H4pc004645 for ; Sun, 14 Jun 2009 20:17:04 -0600 Received: from d03av01.boulder.ibm.com (d03av01.boulder.ibm.com [9.17.195.167]) by d03relay02.boulder.ibm.com (8.13.8/8.13.8/NCO v9.2) with ESMTP id n5F2K4dl251480 for ; Sun, 14 Jun 2009 20:20:04 -0600 Received: from d03av01.boulder.ibm.com (loopback [127.0.0.1]) by d03av01.boulder.ibm.com (8.12.11.20060308/8.13.3) with ESMTP id n5F2K4v1030689 for ; Sun, 14 Jun 2009 20:20:04 -0600 Message-ID: <4A35AFD2.5060909@us.ibm.com> Date: Sun, 14 Jun 2009 21:20:02 -0500 From: Anthony Liguori MIME-Version: 1.0 Subject: Re: [Qemu-devel] [PATCH] Fix SDL configuration for mingw32 cross compilation. References: <1244880087-5277-1-git-send-email-weil@mail.berlios.de> <4A34271B.8080207@us.ibm.com> <4A350288.5090804@mail.berlios.de> In-Reply-To: <4A350288.5090804@mail.berlios.de> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit List-Id: qemu-devel.nongnu.org List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Stefan Weil Cc: qemu-devel@nongnu.org Stefan Weil wrote: > Anthony Liguori schrieb: > >> Stefan Weil wrote: >> >>> When building QEMU for win32 on linux with mingw32, >>> configure must call ${cross_prefix}-sdl-config (not >>> sdl-config) to get the correct include and lib paths. >>> >>> The results of the native sdl-config are only valid >>> for native builds. They are useless for cross builds. >>> >>> >> No, when you cross compile sdl, you still end up with an sdl-config >> binary. The solution is to install the binary to a different path and >> use PATH when building. >> >> Where did you get your cross build of SDL from? I assume whoever >> packaged it renamed the binary but it's not what sdl actually does. >> >> > > The PATH solution works (I used it, too), but it is bad: > you have to use a modified PATH for every cross build > (make calls configure when the configure script is updated). > Yes, this annoys me too. One thing I thought about is that we could record important environment variables for use when re-running make. It's not just PATH. PKG_CONFIG_PATH is also important for running configure. To properly cross compile, you need to set both. Regards, Anthony Liguori