diff --git a/cxxtools.spec b/cxxtools.spec index d42067d..4bcb9e5 100644 --- a/cxxtools.spec +++ b/cxxtools.spec @@ -1,6 +1,6 @@ Name: cxxtools Version: 2.2.1 -Release: 22%{?dist} +Release: 23%{?dist} Summary: A collection of general-purpose C++ classes Epoch: 1 @@ -38,8 +38,10 @@ find -name "*.h" -exec chmod -x {} \; # 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} +# This can be fixed by using -ffat-lto-objects +# -ffat-lto-objects forces compilation even with LTO. It is the default +# for F33, but not expected to be enabled by default for F34 +%define _lto_cflags -flto=auto -ffat-lto-objects %configure --disable-static \ %ifarch s390 s390x aarch64 @@ -73,6 +75,9 @@ find $RPM_BUILD_ROOT -type f -name "*.la" -exec rm -f {} ';' %{_includedir}/cxxtools/ %changelog +* Fri Aug 21 2020 Jeff Law - 1:2.2.1-23 +- Re-enable LTO + * Mon Jul 27 2020 Fedora Release Engineering - 1:2.2.1-22 - Rebuilt for https://fedoraproject.org/wiki/Fedora_33_Mass_Rebuild