From 2c8cb1743e5c89ece042085f3d11667f243b22e6 Mon Sep 17 00:00:00 2001 From: Xi Ruoyao Date: Thu, 3 Nov 2022 10:01:18 +0800 Subject: grub: copy the "no tuning" warning from BLFS It's reported that a GRUB build with CFLAGS=-O2 is broken. --- chapter08/grub.xml | 11 +++++++++++ 1 file changed, 11 insertions(+) (limited to 'chapter08') 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 @@ + + Unset any environment variables which may affect the build: + + unset {C,CPP,CXX,LD}FLAGS + + Don't try tuning 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. + + Prepare GRUB for compilation: ./configure --prefix=/usr \ -- cgit v1.2.3-54-g00ecf