Disable LTO

This commit is contained in:
Jeff Law 2020-08-07 09:55:33 -06:00
parent ba5b45c868
commit fecfaf7d70

View File

@ -1,6 +1,6 @@
Name: libaio
Version: 0.3.111
Release: 9%{?dist}
Release: 10%{?dist}
Summary: Linux-native asynchronous I/O access library
License: LGPLv2+
Source: http://releases.pagure.org/libaio/libaio-0.3.111.tar.gz
@ -38,6 +38,10 @@ for the Linux-native asynchronous I/O facility ("async I/O", or "aio").
mv %{name}-%{version} compat-%{name}-%{version}
%build
# This package uses ASMs to implement symbol versioning and is thus
# incompatible with LTO
%define _lto_cflags %{nil}
# A library with a soname of 1.0.0 was inadvertantly released. This
# build process builds a version of the library with the broken soname in
# the compat-libaio-0.3.103 directory, and then builds the library again
@ -69,6 +73,9 @@ find %{buildroot} -name '*.a' -delete
%attr(0755,root,root) %{usrlibdir}/libaio.so
%changelog
* Fri Aug 07 2020 Jeff Law <law@redhat.com> - 0.3.111-10
- Disable LTO
* Sat Aug 01 2020 Fedora Release Engineering <releng@fedoraproject.org> - 0.3.111-9
- Second attempt - Rebuilt for
https://fedoraproject.org/wiki/Fedora_33_Mass_Rebuild