aboutsummaryrefslogtreecommitdiffstats
path: root/chapter08
diff options
context:
space:
mode:
authorXi Ruoyao <xry111@xry111.site>2022-11-03 10:01:18 +0800
committerXi Ruoyao <xry111@xry111.site>2022-11-03 10:02:44 +0800
commit2c8cb1743e5c89ece042085f3d11667f243b22e6 (patch)
tree465485bcdf7f84c852948c68925b0b6c1bcdd066 /chapter08
parent6dfe1df59367546c9bcd3debf9797c1df533b6ab (diff)
grub: copy the "no tuning" warning from BLFS
It's reported that a GRUB build with CFLAGS=-O2 is broken.
Diffstat (limited to 'chapter08')
-rw-r--r--chapter08/grub.xml11
1 files changed, 11 insertions, 0 deletions
diff --git a/chapter08/grub.xml b/chapter08/grub.xml
index 78304a3ab..08d2ac175 100644
--- a/chapter08/grub.xml
+++ b/chapter08/grub.xml
@@ -50,6 +50,17 @@
</para>
</note>
+ <warning>
+ <para>Unset any environment variables which may affect the build:</para>
+
+ <screen><userinput remap='pre'>unset {C,CPP,CXX,LD}FLAGS</userinput></screen>
+
+ <para>Don't try <quote>tuning</quote> this package with custom
+ compilation flags: this package is a bootloader, with low-level
+ operations in the source code which is likely to be broken by some
+ aggressive optimizations.</para>
+ </warning>
+
<para>Prepare GRUB for compilation:</para>
<screen><userinput remap="configure">./configure --prefix=/usr \