Author: robert
Date: 2011-02-03 21:36:12 -0700 (Thu, 03 Feb 2011)
New Revision: 1612
Modified:
trunk/BOOK/chapter01/changelog.xml
trunk/BOOK/chapter06/grub.xml
Log:
Added GCC options to build Grub.
Modified: trunk/BOOK/chapter01/changelog.xml
===================================================================
--- trunk/BOOK/chapter01/changelog.xml 2011-02-03 21:06:36 UTC (rev 1611)
+++ trunk/BOOK/chapter01/changelog.xml 2011-02-04 04:36:12 UTC (rev 1612)
@@ -41,6 +41,9 @@
<para>2011-02-03</para>
<itemizedlist>
<listitem>
+ <para>[robert] - Added GCC options to build Grub.</para>
+ </listitem>
+ <listitem>
<para>[robert] - Added some -no options when building the Binutils
tests in chapter 6.</para>
</listitem>
Modified: trunk/BOOK/chapter06/grub.xml
===================================================================
--- trunk/BOOK/chapter06/grub.xml 2011-02-03 21:06:36 UTC (rev 1611)
+++ trunk/BOOK/chapter06/grub.xml 2011-02-04 04:36:12 UTC (rev 1612)
@@ -42,12 +42,15 @@
<para>Prepare GRUB for compilation:</para>
-<screen><userinput remap="configure">./configure --prefix=/usr \
- --sysconfdir=/etc \
- --disable-grub-emu-usb \
- --disable-grub-fstest \
- --disable-efiemu</userinput></screen>
+<screen><userinput remap="configure">CC="gcc -no-fatal-warnings -nopie"
LDFLAGS="-pie" ./configure --prefix=/usr \
+ --sysconfdir=/etc --disable-grub-emu-usb \
+ --disable-grub-fstest --disable-efiemu</userinput></screen>
+ <para>The -no-fatal-warnings option is needed for some of the tests in the
+ <filename>configure</filename> script. The -nopie option is needed when
+ compiling Grub modules. The -pie option is added when linking Grub's
+ programs.</para>
+
<para>The --disable switches minimize what is built by disabling features
and testing programs not really needed for LFS.</para>
--
http://linuxfromscratch.org/mailman/listinfo/hlfs-book
FAQ: http://www.linuxfromscratch.org/faq/
Unsubscribe: See the above information page