diff --git a/libsodium.spec b/libsodium.spec index 2c98eaa..0f38fa2 100644 --- a/libsodium.spec +++ b/libsodium.spec @@ -10,7 +10,7 @@ Name: libsodium Version: 1.0.18 -Release: 5%{?dist} +Release: 6%{?dist} Summary: The Sodium crypto library License: ISC URL: http://libsodium.org/ @@ -62,10 +62,12 @@ linking applications to use %{name}. %build # This package has a configure test which uses ASMs, but does not link the # resultant .o files. As such the ASM test is always successful, even on -# architectures were the ASM is not valid. The test should be fixed, -# or alternately we could consider using -ffat-lto-objects, though we -# generally recommend against that. For now, disable LTO. -%define _lto_cflags %{nil} +# architectures were the ASM is not valid when compiling with LTO. +# +# -ffat-lto-objects is sufficient to address this issue. It is the default +# for F33, but is expected to only be enabled for packages that need it in +# F34, so we use it here explicitly +%define _lto_cflags -flto=auto -ffat-lto-objects %configure \ --disable-silent-rules \ @@ -102,6 +104,9 @@ make check %changelog +* Fri Aug 21 2020 Jeff Law - 1.0.18-6 +- Re-enable LTO + * Tue Jul 28 2020 Fedora Release Engineering - 1.0.18-5 - Rebuilt for https://fedoraproject.org/wiki/Fedora_33_Mass_Rebuild