Received: from mailman by lists.gnu.org with archive (Exim 4.43) id 1Ktmie-0007Cq-S6 for mharc-grub-devel@gnu.org; Sat, 25 Oct 2008 13:14:32 -0400 Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1Ktmid-0007Bc-82 for grub-devel@gnu.org; Sat, 25 Oct 2008 13:14:31 -0400 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1Ktmib-00079j-ER for grub-devel@gnu.org; Sat, 25 Oct 2008 13:14:30 -0400 Received: from [199.232.76.173] (port=52410 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Ktmib-00079c-9e for grub-devel@gnu.org; Sat, 25 Oct 2008 13:14:29 -0400 Received: from igw2.br.ibm.com ([32.104.18.25]:38210) by monty-python.gnu.org with esmtps (TLS-1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1Ktmia-0003ex-IV for grub-devel@gnu.org; Sat, 25 Oct 2008 13:14:29 -0400 Received: from d24relay01.br.ibm.com (unknown [9.8.31.16]) by igw2.br.ibm.com (Postfix) with ESMTP id 04D2717F42E for ; Sat, 25 Oct 2008 15:13:21 -0200 (BRDT) Received: from d24av01.br.ibm.com (d24av01.br.ibm.com [9.18.232.46]) by d24relay01.br.ibm.com (8.13.8/8.13.8/NCO v9.1) with ESMTP id m9PHE6OB4173970 for ; Sat, 25 Oct 2008 14:14:06 -0300 Received: from d24av01.br.ibm.com (loopback [127.0.0.1]) by d24av01.br.ibm.com (8.12.11.20060308/8.13.3) with ESMTP id m9PHENSE001678 for ; Sat, 25 Oct 2008 15:14:23 -0200 Received: from [9.8.1.106] ([9.8.1.106]) by d24av01.br.ibm.com (8.12.11.20060308/8.12.11) with ESMTP id m9PHEM7n001673 for ; Sat, 25 Oct 2008 15:14:22 -0200 From: Manoel To: The development of GRUB 2 In-Reply-To: <49033FA8.5010106@joe-lewis.com> References: <49033FA8.5010106@joe-lewis.com> Content-Type: text/plain Date: Sat, 25 Oct 2008 15:14:22 -0200 Message-Id: <1224954862.8384.1.camel@manoel-laptop> Mime-Version: 1.0 X-Mailer: Evolution 2.22.3.1 Content-Transfer-Encoding: 7bit X-detected-operating-system: by monty-python.gnu.org: GNU/Linux 2.6, seldom 2.4 (older, 4) Subject: Re: Question about static compiling 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, 25 Oct 2008 17:14:31 -0000 Even if are using a 64-bit system you can still have 32-bit libraries. I'm not sure about it bur I think the configure script will take care of all flags for you. On Sat, 2008-10-25 at 09:47 -0600, Joe Lewis wrote: > Hello, folks; > > I joined this list as I have been unable to find a solution that I agree > with on a simple question. This should be short, and an answer should > help others to find solutions through searching. My simple question is > - how do I compile a static form of grub2? > > The background - I am trying to create my own LFS system on a dual > quad-core Xeon (x86_64), and the LFS turns out to be a pure-64 bit > environment. I am unable to compile grub, as it requires a 32 bit libc, > and everything I find about grub shows I will have to use a statically > compiled version. My research (mailing list, google, etc) only revealed > setting the enviroment variable for the CFLAGS with a -static, but that > STILL resulted in the binaries holding a reference to /lib/ld-linux.so, > which doesn't exist in a true 64 bit environment - it is > /lib/ld-linux-x86_64.so . And, since it is a 64 bit environment, the > "static" binaries complain about a corrupt shared object if one just > slaps a symlink in there (I've tried everything I can think of). > > I finally hit a wall, and I do not know where to look next. Has anyone > built grub2 on another platform for use in an LFS pure-64 bit > environment? Has anyone successfully compiled grub2 in a 64 bit > environment (I doubt this, but it doesn't hurt to ask) ? I'd be willing > to act as a guinea pig if anyone has some patches to test with, etc. I > had the svn version of 1886. > > Many thanks for taking the time to read this, > Joe > > > _______________________________________________ > Grub-devel mailing list > Grub-devel@gnu.org > http://lists.gnu.org/mailman/listinfo/grub-devel -- Best Regards, Manoel Abranches IBM Linux Technology Center Brazil