From dc2f1a03d9d6a0c503244bd62ae31330326ab227 Mon Sep 17 00:00:00 2001 From: Jeff Law Date: Tue, 21 Jul 2020 13:43:44 -0600 Subject: [PATCH] Move lto disablement to a point where it works for this package --- grub2.spec | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/grub2.spec b/grub2.spec index 4385fb1..f50174d 100644 --- a/grub2.spec +++ b/grub2.spec @@ -1,3 +1,8 @@ +# This package calls binutils components directly and would need to pass +# in flags to enable the LTO plugins +# Disable LTO +%global _lto_cflags %{nil} + %undefine _hardened_build %global tarversion 2.04 @@ -182,11 +187,6 @@ git add grub-emu-%{tarversion} git commit -m "After making subdirs" %build -# This package calls binutils components directly and would need to pass -# in flags to enable the LTO plugins -# Disable LTO -%define _lto_cflags %{nil} - %if 0%{with_efi_arch} %{expand:%do_primary_efi_build %%{grubefiarch} %%{grubefiname} %%{grubeficdname} %%{_target_platform} %%{efi_target_cflags} %%{efi_host_cflags}} %endif