From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mailman by lists.gnu.org with archive (Exim 4.43) id 1Mrc2W-00027K-FO for mharc-grub-devel@gnu.org; Sat, 26 Sep 2009 14:30:36 -0400 Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1Mrc2T-00025U-CE for grub-devel@gnu.org; Sat, 26 Sep 2009 14:30:33 -0400 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1Mrc2N-00020S-V5 for grub-devel@gnu.org; Sat, 26 Sep 2009 14:30:32 -0400 Received: from [199.232.76.173] (port=58028 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Mrc2N-00020D-QK for grub-devel@gnu.org; Sat, 26 Sep 2009 14:30:27 -0400 Received: from fg-out-1718.google.com ([72.14.220.156]:43130) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1Mrc2N-0006Fm-DK for grub-devel@gnu.org; Sat, 26 Sep 2009 14:30:27 -0400 Received: by fg-out-1718.google.com with SMTP id e21so374049fga.12 for ; Sat, 26 Sep 2009 11:30:26 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:message-id:date:from :user-agent:mime-version:to:subject:references:in-reply-to :content-type:content-transfer-encoding; bh=c3N/hNRXnrlV3c7kwcgiGteGfGW+1k2gY6nUfXbwPsk=; b=VA1yS8l1uyB37kh9M1LB70uAL9J8Id75PtvyVNjSrEAtFrXes+BI0f33be+Ywq0yPh 1xxg2wEYnFdfLN8T0WAusVBXKdu7YQjJ//jynqt93vMgUAF9UfHKBPMgZ9f9k1T5oDbD fjC1JzUEvoxTdMFobZSrpJG884PdzHJh6ExQs= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=message-id:date:from:user-agent:mime-version:to:subject:references :in-reply-to:content-type:content-transfer-encoding; b=uBAUpa2lQGdbhmBVEEi94ytwmVVgSzN1zQH47ysdwYUhcUsyJau2TlyMVmqeW1iYma JqrUwmmPM9OcKaYHeG2xYTqKx8U9XPzbUYkn7hnX51DugeXLTRA4l9B1QLhPGBUA4eDj v6JQmwoUKUatNEs98bOm4tw369hj8zahB5EHs= Received: by 10.86.158.5 with SMTP id g5mr2028452fge.32.1253989826234; Sat, 26 Sep 2009 11:30:26 -0700 (PDT) Received: from ?129.132.210.210? (vpn-global-dhcp3-210.ethz.ch [129.132.210.210]) by mx.google.com with ESMTPS id e11sm2428267fga.6.2009.09.26.11.30.25 (version=TLSv1/SSLv3 cipher=RC4-MD5); Sat, 26 Sep 2009 11:30:25 -0700 (PDT) Message-ID: <4ABE24F6.9010207@gmail.com> Date: Sat, 26 Sep 2009 16:28:06 +0200 From: Vladimir 'phcoder' Serbinenko User-Agent: Mozilla-Thunderbird 2.0.0.22 (X11/20090701) MIME-Version: 1.0 To: The development of GRUB 2 References: <20090925230104.GU13423@riva.ucam.org> In-Reply-To: <20090925230104.GU13423@riva.ucam.org> Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit X-detected-operating-system: by monty-python.gnu.org: GNU/Linux 2.6 (newer, 2) Subject: Re: configure does not honor CC when testing for -mcmodel=large X-BeenThere: grub-devel@gnu.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: The development of GRUB 2 List-Id: The development of GRUB 2 List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 26 Sep 2009 18:30:33 -0000 Colin Watson wrote: > On Fri, Sep 25, 2009 at 03:35:57PM -0700, Seth Goldberg wrote: > >> Ok, setting TARGET_CC to gcc-4.3.2 works around this. My assumption was >> that CC was the right environment variable (technically, it is, since I'm >> not "cross-compiling". >> > > Any reason not to use --host as well as --target then, so that Autoconf > knows you want to force a specific host platform? If you do that and the > values provided for host and target are the same, GRUB's configure > script won't assume cross-compilation GRUB is one of rare projects having all 3 platform variables: build: where gcc is executed host: where grub-install/grub-emu/... is executed target: the system which needs the bootloader. Because sometimes target!=host we need 2 compilers in general case. Additionally booting environment is different from OS so I would say that grub2 is always cross-compiled.