From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mailman by lists.gnu.org with archive (Exim 4.43) id 1FUi7T-0004w5-VI for mharc-grub-devel@gnu.org; Sat, 15 Apr 2006 06:35:12 -0400 Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1FUi7S-0004vg-9L for grub-devel@gnu.org; Sat, 15 Apr 2006 06:35:10 -0400 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1FUi7P-0004um-U8 for grub-devel@gnu.org; Sat, 15 Apr 2006 06:35:09 -0400 Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1FUi7P-0004uj-Oj for grub-devel@gnu.org; Sat, 15 Apr 2006 06:35:07 -0400 Received: from [194.109.24.32] (helo=smtp-vbr12.xs4all.nl) by monty-python.gnu.org with esmtp (Exim 4.52) id 1FUi7a-0001CM-O2 for grub-devel@gnu.org; Sat, 15 Apr 2006 06:35:19 -0400 Received: from localhost.localdomain (249-174.surfsnel.dsl.internl.net [145.99.174.249]) by smtp-vbr12.xs4all.nl (8.13.6/8.13.6) with ESMTP id k3FAYxKb010484 for ; Sat, 15 Apr 2006 12:35:00 +0200 (CEST) (envelope-from mgerards@xs4all.nl) Mail-Copies-To: mgerards@xs4all.nl To: The development of GRUB 2 References: <3ee0a8f18ea58d3a5094266f8e7f8e42@penguinppc.org> <1fa98bd274eb1d8fffb77fe4de3f1363@penguinppc.org> From: Marco Gerards Date: Sat, 15 Apr 2006 12:36:14 +0200 In-Reply-To: <1fa98bd274eb1d8fffb77fe4de3f1363@penguinppc.org> (Hollis Blanchard's message of "Sat, 15 Apr 2006 00:27:53 -0500") Message-ID: <87ejzzceht.fsf@xs4all.nl> User-Agent: Gnus/5.1007 (Gnus v5.10.7) Emacs/21.4 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Virus-Scanned: by XS4ALL Virus Scanner Subject: Re: [ppc patch] link with -m32 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, 15 Apr 2006 10:35:10 -0000 Hollis Blanchard 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