Received: from mailman by lists.gnu.org with archive (Exim 4.43) id 1FUdK8-0006VR-6x for mharc-grub-devel@gnu.org; Sat, 15 Apr 2006 01:27:56 -0400 Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1FUdK5-0006Tg-Mh for grub-devel@gnu.org; Sat, 15 Apr 2006 01:27:53 -0400 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1FUdK4-0006SV-M5 for grub-devel@gnu.org; Sat, 15 Apr 2006 01:27:52 -0400 Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1FUdK4-0006SG-Fi for grub-devel@gnu.org; Sat, 15 Apr 2006 01:27:52 -0400 Received: from [209.86.89.67] (helo=smtpauth07.mail.atl.earthlink.net) by monty-python.gnu.org with esmtp (Exim 4.52) id 1FUdKC-0007Bd-OX for grub-devel@gnu.org; Sat, 15 Apr 2006 01:28:00 -0400 Received: from [63.246.184.80] (helo=[192.168.0.101]) by smtpauth07.mail.atl.earthlink.net with asmtp (Exim 4.34) id 1FUdJz-0004tu-Pn for grub-devel@gnu.org; Sat, 15 Apr 2006 01:27:47 -0400 Mime-Version: 1.0 (Apple Message framework v623) In-Reply-To: <3ee0a8f18ea58d3a5094266f8e7f8e42@penguinppc.org> References: <3ee0a8f18ea58d3a5094266f8e7f8e42@penguinppc.org> Content-Type: text/plain; charset=US-ASCII; format=flowed Message-Id: <1fa98bd274eb1d8fffb77fe4de3f1363@penguinppc.org> Content-Transfer-Encoding: 7bit From: Hollis Blanchard Date: Sat, 15 Apr 2006 00:27:53 -0500 To: The development of GRUB 2 X-Mailer: Apple Mail (2.623) X-ELNK-Trace: 77a46389d001b1f223bcf3e39c2f8b5f1aa676d7e74259b7b3291a7d08dfec7917f22c2f2a578374a91c6a90fb1439ac350badd9bab72f9c350badd9bab72f9c X-Originating-IP: 63.246.184.80 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 05:27:54 -0000 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. Having dug through this for the past couple hours, I'm considering rewriting the Makefiles using plain make (i.e. no generating scripts). Thoughts? -Hollis