From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mailman by lists.gnu.org with archive (Exim 4.43) id 1KtlwQ-0007Ng-MD for mharc-grub-devel@gnu.org; Sat, 25 Oct 2008 12:24:42 -0400 Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1KtlwO-0007LJ-MD for grub-devel@gnu.org; Sat, 25 Oct 2008 12:24:40 -0400 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1KtlwN-0007KO-UN for grub-devel@gnu.org; Sat, 25 Oct 2008 12:24:40 -0400 Received: from [199.232.76.173] (port=41898 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1KtlwN-0007KJ-Q5 for grub-devel@gnu.org; Sat, 25 Oct 2008 12:24:39 -0400 Received: from 166-70-186-42.ip.xmission.com ([166.70.186.42]:52566 helo=onyx.sharktooth.org) by monty-python.gnu.org with esmtps (TLS-1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1KtlwN-00005W-Jo for grub-devel@gnu.org; Sat, 25 Oct 2008 12:24:39 -0400 Received: from ut51-217.dsl.relia.net ([72.250.217.51] helo=[192.168.1.183]) by onyx.sharktooth.org with esmtpsa (TLSv1:AES256-SHA:256) (Exim 4.63 (FreeBSD)) (envelope-from ) id 1Ktl5f-000NwI-JQ for grub-devel@gnu.org; Sat, 25 Oct 2008 09:30:12 -0600 Message-ID: <49033FA8.5010106@joe-lewis.com> Date: Sat, 25 Oct 2008 09:47:52 -0600 From: Joe Lewis User-Agent: Thunderbird 2.0.0.17 (Windows/20080914) MIME-Version: 1.0 To: grub-devel@gnu.org Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-SA-Exim-Connect-IP: 72.250.217.51 X-SA-Exim-Mail-From: joe@joe-lewis.com X-SA-Exim-Version: 4.2 X-SA-Exim-Scanned: Yes (on onyx.sharktooth.org) X-detected-operating-system: by monty-python.gnu.org: FreeBSD 6.x (1) X-Greylist: delayed 2177 seconds by postgrey-1.27 at monty-python; Sat, 25 Oct 2008 12:24:38 EDT Subject: 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 16:24:41 -0000 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