From c1725b158040b9239443e77ab502b246fb39daf7 Mon Sep 17 00:00:00 2001 From: Jeff Law Date: Wed, 1 Jul 2020 12:28:00 -0600 Subject: [PATCH] Disable LTO --- libselinux.spec | 13 ++++++++++++- 1 file changed, 12 insertions(+), 1 deletion(-) diff --git a/libselinux.spec b/libselinux.spec index 43d86ec..addb1ee 100644 --- a/libselinux.spec +++ b/libselinux.spec @@ -4,7 +4,7 @@ Summary: SELinux library and simple utilities Name: libselinux Version: 3.0 -Release: 5%{?dist} +Release: 6%{?dist} License: Public Domain # https://github.com/SELinuxProject/selinux/wiki/Releases Source0: https://github.com/SELinuxProject/selinux/releases/download/20191204/libselinux-3.0.tar.gz @@ -94,6 +94,14 @@ needed for developing SELinux applications. %autosetup -p 2 -n libselinux-%{version} %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} + export DISABLE_RPM="y" export USE_PCRE2="y" @@ -222,6 +230,9 @@ rm -f %{buildroot}%{_mandir}/man8/togglesebool* %{ruby_vendorarchdir}/selinux.so %changelog +* Wed Jul 1 2020 Jeff Law - 3.0-6 +- Disable LTO + * Sat May 23 2020 Miro HronĨok - 3.0-5 - Rebuilt for Python 3.9