Disable LTO.

This commit is contained in:
Jeff Law 2020-06-30 13:43:47 -06:00
parent 4867e8077c
commit 1c6df1cde1

View File

@ -3,7 +3,7 @@
Name: mpdecimal
Version: 2.4.2
Release: 13%{?dist}
Release: 14%{?dist}
Summary: Library for general decimal arithmetic
License: BSD
@ -46,6 +46,12 @@ The package contains documentation for the mpdecimal library.
unzip -d tests/testdata %{SOURCE1}
%build
# configure tests try to compile code containing ASMs to a .o file
# In an LTO world, that always works as compilation does not happen until
# link time. As a result we get the wrong results from configure.
# Disable LTO.
%define _lto_cflags %{nil}
%configure
make %{?_smp_mflags}
@ -80,6 +86,9 @@ fi
%ldconfig_scriptlets
%changelog
* Tue Jun 30 2020 Jeff Law <law@redhat.com> - 2.4.2-14
Disable LTO
* Wed Jan 29 2020 Fedora Release Engineering <releng@fedoraproject.org> - 2.4.2-13
- Rebuilt for https://fedoraproject.org/wiki/Fedora_32_Mass_Rebuild