From e0e5bb38437d80e70e95be57040b4a8017ae641c Mon Sep 17 00:00:00 2001 From: Jeff Law Date: Aug 31 2020 18:53:00 +0000 Subject: Force -ffat-lto-objects and re-enable LTO --- diff --git a/mpdecimal.spec b/mpdecimal.spec index afdf8cb..cc99368 100644 --- a/mpdecimal.spec +++ b/mpdecimal.spec @@ -3,7 +3,7 @@ Name: mpdecimal Version: 2.5.0 -Release: 2%{?dist} +Release: 3%{?dist} Summary: Library for general decimal arithmetic License: BSD @@ -50,11 +50,10 @@ 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} +# Force -ffat-lto-objects so that configure tests are assembled which +# is required for ASM configure tests. -ffat-lto-objects is the default +# for F33, but will not be the default in F34 +#define _lto_cflags -flto=auto -ffat-lto-objects %configure make %{?_smp_mflags} @@ -93,6 +92,9 @@ fi %ldconfig_scriptlets %changelog +* Mon Aug 31 2020 Jeff Law - 2.5.0-3 +- Force -ffat-lto-objects and re-enable LTO + * Thu Aug 6 2020 Jaroslav Škarvada - 2.5.0-2 - Re-enabled tests