From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1O0cGF-0004oK-L7 for qemu-devel@nongnu.org; Sat, 10 Apr 2010 11:06:15 -0400 Received: from [140.186.70.92] (port=58628 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1O0cGE-0004ne-BJ for qemu-devel@nongnu.org; Sat, 10 Apr 2010 11:06:15 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.69) (envelope-from ) id 1O0cG8-000443-UL for qemu-devel@nongnu.org; Sat, 10 Apr 2010 11:06:14 -0400 Received: from hall.aurel32.net ([88.191.82.174]:37403) by eggs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1O0cG8-00043x-Or for qemu-devel@nongnu.org; Sat, 10 Apr 2010 11:06:08 -0400 Date: Sat, 10 Apr 2010 17:06:07 +0200 From: Aurelien Jarno Subject: Re: [Qemu-devel] [PATCH] Fix cross compilation Message-ID: <20100410150607.GD23683@volta.aurel32.net> References: <1269769445-7350-1-git-send-email-weil@mail.berlios.de> <20100409194401.GE21042@volta.aurel32.net> <4BC02A07.8080307@mail.berlios.de> MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-15 Content-Disposition: inline In-Reply-To: <4BC02A07.8080307@mail.berlios.de> List-Id: qemu-devel.nongnu.org List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Stefan Weil Cc: QEMU Developers On Sat, Apr 10, 2010 at 09:34:31AM +0200, Stefan Weil wrote: > 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) Why sdl_config only for cross compilation? If $(cross_prefix} is not set for native compilation, always looking for: - first to $(cross_prefix}pkg-config - and then to ${cross_prefix}sdl-config looks the way to go. -- Aurelien Jarno GPG: 1024D/F1BCDB73 aurelien@aurel32.net http://www.aurel32.net