From 9412098946d539ed44515aa452a200c99d84d37f Mon Sep 17 00:00:00 2001 From: Jeff Law Date: Mon, 27 Jul 2020 17:09:40 -0600 Subject: [PATCH] Disable LTO --- efivar.spec | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/efivar.spec b/efivar.spec index 4842e5c..c97ad26 100644 --- a/efivar.spec +++ b/efivar.spec @@ -1,6 +1,6 @@ Name: efivar Version: 37 -Release: 10%{?dist} +Release: 11%{?dist} Summary: Tools to manage UEFI variables License: LGPL-2.1 URL: https://github.com/rhboot/efivar @@ -48,6 +48,10 @@ git config --unset user.email git config --unset user.name %build +# This package implements symbol versioning with toplevel ASM statments which is +# incompatible with LTO. Disable LTO +%define _lto_cflags %{nil} + make LIBDIR=%{_libdir} BINDIR=%{_bindir} CFLAGS="$RPM_OPT_FLAGS -flto" LDFLAGS="$RPM_LD_FLAGS -flto" %install @@ -79,6 +83,9 @@ make abicheck %{_libdir}/*.so.* %changelog +* Mon Jul 27 2020 Jeff Law - 37-11 +- Disable LTO + * Mon Jul 27 2020 Fedora Release Engineering - Rebuilt for https://fedoraproject.org/wiki/Fedora_33_Mass_Rebuild