From 8dbddeea403fe7a7cb56e8064da54546253addb8 Mon Sep 17 00:00:00 2001 From: Jeff Law Date: Wed, 1 Jul 2020 12:32:59 -0600 Subject: [PATCH] Disable LTO --- lksctp-tools.spec | 13 ++++++++++++- 1 file changed, 12 insertions(+), 1 deletion(-) diff --git a/lksctp-tools.spec b/lksctp-tools.spec index a50d30d..16a641d 100644 --- a/lksctp-tools.spec +++ b/lksctp-tools.spec @@ -1,7 +1,7 @@ Name: lksctp-tools Summary: User-space access to Linux Kernel SCTP Version: 1.0.18 -Release: 4%{?dist} +Release: 5%{?dist} # src/apps/bindx_test.C is GPLv2, I've asked upstream for clarification License: GPLv2 and GPLv2+ and LGPLv2 and MIT Group: System Environment/Libraries @@ -58,6 +58,14 @@ Drafts). %patch6 -p1 %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} + [ ! -x ./configure ] && sh bootstrap %configure --disable-static # remove rpath from libtool @@ -96,6 +104,9 @@ find $RPM_BUILD_ROOT -type f -name "*.la" -delete %doc doc/*.txt %changelog +* Wed Jul 01 2020 Jeff Law - 1.0.18-5 +- Disable LTO + * Wed Jan 29 2020 Fedora Release Engineering - 1.0.18-4 - Rebuilt for https://fedoraproject.org/wiki/Fedora_32_Mass_Rebuild