Disable LTO

This commit is contained in:
Jeff Law 2020-07-01 12:26:10 -06:00
parent 1a06b53cf6
commit 4186cb9be2

View File

@ -186,7 +186,7 @@ Summary: Distributed File System
%if ( 0%{_for_fedora_koji_builds} )
Name: glusterfs
Version: 8.0
Release: 0.1%{?dev:%{dev}}%{?dist}
Release: 0.2%{?dev:%{dev}}%{?dist}
%else
Name: @PACKAGE_NAME@
Version: @PACKAGE_VERSION@
@ -670,6 +670,13 @@ done
%endif
%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}
sed -i -e 's/--quiet//' configure.ac
./autogen.sh && %configure \
@ -1436,6 +1443,9 @@ exit 0
%{_unitdir}/gluster-ta-volume.service
%changelog
* Wed Jul 1 2020 Jeff Law <law@redhat.com> - 8.0-0.2rc0
- Disable LTO
* Mon Jun 1 2020 Kaleb S. KEITHLEY <kkeithle[at]redhat.com> - 8.0-0.1rc0
- 8.0 RC0