From: Vladimir 'phcoder' Serbinenko <phcoder@gmail.com>
To: The development of GRUB 2 <grub-devel@gnu.org>
Subject: Re: configure does not honor CC when testing for -mcmodel=large
Date: Sat, 26 Sep 2009 16:28:06 +0200 [thread overview]
Message-ID: <4ABE24F6.9010207@gmail.com> (raw)
In-Reply-To: <20090925230104.GU13423@riva.ucam.org>
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.
next prev parent reply other threads:[~2009-09-26 18:30 UTC|newest]
Thread overview: 9+ messages / expand[flat|nested] mbox.gz Atom feed top
2009-09-25 21:07 16bit x86 assembler/disassembler James Courtier-Dutton
2009-09-25 21:10 ` Seth Goldberg
2009-09-25 21:25 ` James Courtier-Dutton
2009-09-26 9:21 ` Felix Zielcke
2009-09-25 22:29 ` configure does not honor CC when testing for -mcmodel=large Seth Goldberg
2009-09-25 22:35 ` Seth Goldberg
2009-09-25 23:01 ` Colin Watson
2009-09-26 14:28 ` Vladimir 'phcoder' Serbinenko [this message]
2009-09-25 22:37 ` Colin Watson
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=4ABE24F6.9010207@gmail.com \
--to=phcoder@gmail.com \
--cc=grub-devel@gnu.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.