From: Tony Battersby Date: Tue, 27 Jul 2021 13:35:25 +0000 (-0400) Subject: lto.inc: disable LTO for grub X-Git-Tag: uninative-3.3~66 X-Git-Url: https://code.ossystems.io/gitweb?a=commitdiff_plain;h=d1fd3693411d83214f0f88b2f9d7aef12ecd6e02;p=openembedded-core.git lto.inc: disable LTO for grub With gcc 11.1, compiling grub with LTO causes an internal compiler error (ICE), and with gcc 10.2, files under /usr/lib/grub/i386-pc/*.mod are not binary reproducible. [YOCTO #14490] (gcc 11.1 ICE) [YOCTO #14481] (LTO and binary reproducibility) Signed-off-by: Tony Battersby Signed-off-by: Richard Purdie --- diff --git a/meta/conf/distro/include/lto.inc b/meta/conf/distro/include/lto.inc index 79818ac09f..b8193725a1 100644 --- a/meta/conf/distro/include/lto.inc +++ b/meta/conf/distro/include/lto.inc @@ -22,6 +22,8 @@ LTO:pn-perf = "" # webkit is not linking properly with LTO, disable until next time LTO:pn-webkitgtk = "" LTO:pn-xserver-xorg = "" +LTO:pn-grub = "" +LTO:pn-grub-efi = "" # Custom LTO flags # disable partitioning/streaming algorithm since its uses ASM