grub: copy the "no tuning" warning from BLFS

It's reported that a GRUB build with CFLAGS=-O2 is broken.
This commit is contained in:
Xi Ruoyao 2022-11-03 10:01:18 +08:00
parent 6dfe1df593
commit 2c8cb1743e
No known key found for this signature in database
GPG Key ID: ACAAD20E19E710E3

View File

@ -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 \