From: Tom Rini <trini@kernel.crashing.org>
To: "H. Peter Anvin" <hpa@zytor.com>
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:50:04 -0700 [thread overview]
Message-ID: <20041129185004.GF22325@smtp.west.cox.net> (raw)
In-Reply-To: <41A4B52D.2030402@zytor.com>
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...
--
Tom Rini
http://gate.crashing.org/~trini/
next prev parent reply other threads:[~2004-11-29 18:50 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2004-11-24 16:22 H. Peter Anvin
2004-11-29 18:50 ` Tom Rini [this message]
2004-11-29 19:25 ` H. Peter Anvin
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=20041129185004.GF22325@smtp.west.cox.net \
--to=trini@kernel.crashing.org \
--cc=hpa@zytor.com \
--cc=linux-kernel@vger.kernel.org \
--cc=torvalds@Osdl.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
all inboxes | Powered by JetHome®