aboutsummaryrefslogtreecommitdiffstats
path: root/chapter06/grub.xml
diff options
context:
space:
mode:
Diffstat (limited to 'chapter06/grub.xml')
-rw-r--r--chapter06/grub.xml11
1 files changed, 10 insertions, 1 deletions
diff --git a/chapter06/grub.xml b/chapter06/grub.xml
index a7c7ff1bc..3abecc041 100644
--- a/chapter06/grub.xml
+++ b/chapter06/grub.xml
@@ -32,10 +32,19 @@ Grub.</para>
<screen><userinput>./configure --prefix=/usr</userinput></screen>
-<para>Compile the package:</para>
+<para>A few of the files comprising Grub have issues with optimizations done
+by GCC 3.4. Compile these few files with known-good optimizations:</para>
+
+<screen><userinput>make -C stage2 STAGE2_CFLAGS=-O2 \
+ pre_stage2_exec-builtins.o pre_stage2_exec-serial.o</userinput></screen>
+
+<para>Now compile the rest of the package:</para>
<screen><userinput>make</userinput></screen>
+<para>To test the results, issue:
+<userinput>make check</userinput>.</para>
+
<para>Now install it:</para>
<screen><userinput>make install