From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1O0VG7-0003F4-CR for qemu-devel@nongnu.org; Sat, 10 Apr 2010 03:37:39 -0400 Received: from [140.186.70.92] (port=35442 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1O0VG2-0003AW-Iv for qemu-devel@nongnu.org; Sat, 10 Apr 2010 03:37:36 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.69) (envelope-from ) id 1O0VEa-0001Bk-C8 for qemu-devel@nongnu.org; Sat, 10 Apr 2010 03:36:08 -0400 Received: from moutng.kundenserver.de ([212.227.126.171]:53102) by eggs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1O0VEW-0000vA-FG for qemu-devel@nongnu.org; Sat, 10 Apr 2010 03:36:03 -0400 Message-ID: <4BC02A07.8080307@mail.berlios.de> Date: Sat, 10 Apr 2010 09:34:31 +0200 From: Stefan Weil MIME-Version: 1.0 Subject: Re: [Qemu-devel] [PATCH] Fix cross compilation References: <1269769445-7350-1-git-send-email-weil@mail.berlios.de> <20100409194401.GE21042@volta.aurel32.net> In-Reply-To: <20100409194401.GE21042@volta.aurel32.net> Content-Type: text/plain; charset=ISO-8859-15 Content-Transfer-Encoding: 7bit List-Id: qemu-devel.nongnu.org List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Aurelien Jarno Cc: QEMU Developers Aurelien Jarno schrieb: > On Sun, Mar 28, 2010 at 11:44:05AM +0200, Stefan Weil wrote: >> This patch enhances the algorithm which finds the correct settings >> for SDL. >> For cross compilations (when cross_prefix is set), it looks for >> sdl-config >> with cross prefix. Here is the complete search order: >> >> ${cross_prefix}sdl_config (new, only used for cross compilation) >> $(cross_prefix}pkg-config (old) >> pkg-config (old, needs PATH) >> sdl-config (old, needs PATH) > > Why a different order for cross-compilation than for native > compilation? I would expect the same order in both case, that is > pkg-config first, and then sdl_config. The general rule, not specific to > QEMU, is to prefer pkg-config over *config programs. > Maybe the correct solution should be $(cross_prefix}pkg-config (old) ${cross_prefix}sdl_config (new, only used for cross compilation) Fallback to native *-config and "hope for the best" is no good solution for cross compilations. If nobody disagrees, I'll send a patch without this fallback. Stefan