public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
From: "H. Peter Anvin" <hpa@zytor.com>
To: Tom Rini <trini@kernel.crashing.org>
Cc: Linus Torvalds <torvalds@Osdl.ORG>,
	linux-kernel <linux-kernel@vger.kernel.org>
Subject: Re: [PATCH] Allow compiling i386 with an x86-64 compiler
Date: Mon, 29 Nov 2004 11:25:04 -0800	[thread overview]
Message-ID: <41AB7790.5050404@zytor.com> (raw)
In-Reply-To: <20041129185004.GF22325@smtp.west.cox.net>

Tom Rini wrote:
> On Wed, Nov 24, 2004 at 08:22:05AM -0800, H. Peter Anvin wrote:
> 
> 
>>This patch adds -m32 if gcc supports it, thus making it easier to 
>>compile the i386 architecture with an x86-64 compiler.
>>
>>Note that it adds the option to CC, since it also affects assembly code 
>>and linking.  The extra level of indirection is because $(call 
>>cc-option) itself uses $(CC), so just doing CC += ... would cause $(CC) 
>>to be recursively defined.
> 
> 
> Just so 'bi-arch' arches look the same, I'd like to suggest (and stolen
> from ppc32) something like:
> HAS_BIARCH      := $(call cc-option-yn, -m32)
> ifeq ($(HAS_BIARCH),y)
> CC := $(CC) -m32
> endif
> 
> Up near the top...
> 

I'm not really happy with it, because it's misleading; it implies it 
tests for a working x86-64 devel environment, which it doesn't.  It's 
not a strong opinion, though.

	-hpa


      reply	other threads:[~2004-11-29 19:40 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2004-11-24 16:22 [PATCH] Allow compiling i386 with an x86-64 compiler H. Peter Anvin
2004-11-29 18:50 ` Tom Rini
2004-11-29 19:25   ` H. Peter Anvin [this message]

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=41AB7790.5050404@zytor.com \
    --to=hpa@zytor.com \
    --cc=linux-kernel@vger.kernel.org \
    --cc=torvalds@Osdl.ORG \
    --cc=trini@kernel.crashing.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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox