[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [ppc patch] link with -m32
From: |
Marco Gerards |
Subject: |
Re: [ppc patch] link with -m32 |
Date: |
Sat, 15 Apr 2006 12:36:14 +0200 |
User-agent: |
Gnus/5.1007 (Gnus v5.10.7) Emacs/21.4 (gnu/linux) |
Hollis Blanchard <address@hidden> writes:
> On Apr 14, 2006, at 11:06 PM, Hollis Blanchard wrote:
>
>> Some 64-bit PowerPC compilers default to 64-bit output. Right now
>> we're building all the object files with -m32, but then the linker
>> complains when it tries to link a 64-bit grubof. We need to add -m32
>> to LDFLAGS as well as CFLAGS.
>
> Hmm, I didn't notice the error messages this caused. -m32 is a gcc
> flag, not an ld flag. However, there's some confusion about LDFLAGS
> and CFLAGS in genmk.rb (and conf/*.rmk). In particular, you cannot do
> $(CC) $(LDFLAGS), and you cannot do $(LD) $(CFLAGS).
>
> There is also confusion about which *FLAGS are used to build which
> targets. I've been investigating, but in the meantime this patch won't
> work.
I think LDFLAGS are really processed by cc, no? So we do not use ld,
but cc if I am not mistaken.
Can you show what you currently have? Or should I just look at your
previous patch?
--
Marco