From a37a4b29612a1265abe44a5bd7a892a2cb9881f2 Mon Sep 17 00:00:00 2001 From: Jeff Law Date: Jul 01 2020 18:34:31 +0000 Subject: Disable LTO --- diff --git a/tuned-profiles-nfv-host-bin.spec b/tuned-profiles-nfv-host-bin.spec index 909deca..f697048 100644 --- a/tuned-profiles-nfv-host-bin.spec +++ b/tuned-profiles-nfv-host-bin.spec @@ -12,7 +12,7 @@ Name: tuned-profiles-nfv-host-bin Version: 0 -Release: 0.5.%{git_suffix}%{?dist} +Release: 0.6.%{git_suffix}%{?dist} Summary: Binaries that are needed for the NFV host Tuned profile License: GPLv2 URL: http://www.linux-kvm.org/page/KVM-unit-tests @@ -28,6 +28,14 @@ host Tuned profile. %setup -q -n %{src_name}-%{git_commit} %build +# This package uses top level ASM constructs which are incompatible with LTO. +# Top level ASMs are often used to implement symbol versioning. gcc-10 +# introduces a new mechanism for symbol versioning which works with LTO. +# Converting packages to use that mechanism instead of toplevel ASMs is +# recommended. +# Disable LTO +%define _lto_cflags %{nil} + ./configure # it's bootable image like kernel or memtest86+, not host executable, # so we can deviate from the distro's flags @@ -44,6 +52,9 @@ install -Dpm 0644 x86/tscdeadline_latency.flat %{buildroot}%{_datadir}/%{name}/t %{_datadir}/%{name} %changelog +* Wed Jul 01 2020 Jeff Law - 0-0.6.20180302git1edfa966 +- Disable LTO + * Fri Jan 31 2020 Fedora Release Engineering - 0-0.5.20180302git1edfa966 - Rebuilt for https://fedoraproject.org/wiki/Fedora_32_Mass_Rebuild