Re-enable LTO

This commit is contained in:
Jeff Law 2020-10-01 17:39:29 -06:00
parent 2c6c52d214
commit af7c6ca96c

View File

@ -2,7 +2,7 @@
Name: botan
Version: %{major_version}.17
Release: 21%{?dist}
Release: 22%{?dist}
Summary: Crypto library written in C++
License: BSD
@ -85,12 +85,6 @@ interfaces may change in the future.
rm -rf checks/ec_tests.cpp
%build
# This package fails to build on armv7 with LTO due to the usual problems
# with NEON instructions. After we figure out the root cause of the failure
# we'll hopefully be able to remove this opt-out
%ifarch armv7hl
%define _lto_cflags %{nil}
%endif
# we have the necessary prerequisites, so enable optional modules
%global enable_modules bzip2,zlib
@ -198,6 +192,9 @@ LD_LIBRARY_PATH=%{buildroot}%{_libdir} ./check --validate
%changelog
* Thu Oct 01 2020 Jeff Law <law@redhat.com> - 1.10.17-22
- Re-enable LTO
* Mon Aug 10 2020 Jeff Law <law@redhat.com> - 1.10.17-21
- Disable LTO on armv7hl for now.