From 3a8f1e293b78c68e96e4c667827a542453d348ef Mon Sep 17 00:00:00 2001 From: Jeff Law Date: Mon, 8 Feb 2021 19:41:49 +0100 Subject: [PATCH] Remove -fcf-protection compiler flag to allow i386 builds GRUB uses -march=i386 to build the x86 BIOS code but recent changes in the default %{optflags} enabled the -fcf-protection flag that's not compatible with pre-i686 CPUs. This led to a build error in the grub2 package. To avoid this failure and let the package to build again, remove the -fcf-protection flag for now. Related: rhbz#1915452 Signed-off-by: Jeff Law --- grub.macros | 1 + 1 file changed, 1 insertion(+) diff --git a/grub.macros b/grub.macros index 775787d..52d5cae 100644 --- a/grub.macros +++ b/grub.macros @@ -24,6 +24,7 @@ -e 's/--param=ssp-buffer-size=4//g' \\\ -e 's/-mregparm=3/-mregparm=4/g' \\\ -e 's/-fexceptions//g' \\\ + -e 's/-fcf-protection//g' \\\ -e 's/-fasynchronous-unwind-tables//g' \\\ -e 's/^/ -fno-strict-aliasing /' \\\ %{nil}