diff --git a/cxxtools.spec b/cxxtools.spec index 5a96456..f5081d2 100644 --- a/cxxtools.spec +++ b/cxxtools.spec @@ -1,6 +1,6 @@ Name: cxxtools Version: 2.2.1 -Release: 20%{?dist} +Release: 21%{?dist} Summary: A collection of general-purpose C++ classes Epoch: 1 @@ -35,6 +35,12 @@ find -name "*.cpp" -exec chmod -x {} \; find -name "*.h" -exec chmod -x {} \; %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 --disable-static \ %ifarch s390 s390x aarch64 --with-atomictype=pthread \ @@ -67,6 +73,9 @@ find $RPM_BUILD_ROOT -type f -name "*.la" -exec rm -f {} ';' %{_includedir}/cxxtools/ %changelog +* Tue Jun 30 2020 Jeff Law - 1:2.2.1-21 +- Disable LTO + * Tue Jan 28 2020 Fedora Release Engineering - 1:2.2.1-20 - Rebuilt for https://fedoraproject.org/wiki/Fedora_32_Mass_Rebuild