Disable LTO

This commit is contained in:
Jeff Law 2020-07-01 12:14:05 -06:00
parent b0142ff81a
commit 329d630c54

View File

@ -1,6 +1,6 @@
Name: cmocka
Version: 1.1.5
Release: 3%{?dist}
Release: 4%{?dist}
License: ASL 2.0
Summary: An elegant unit testing framework for C with support for mock objects
@ -84,6 +84,11 @@ Development headers for the cmocka unit testing library.
%autosetup -p1
%build
# This package uses -Wl,-wrap to wrap calls at link time. This is incompatible
# with LTO.
# Disable LTO
%define _lto_cflags %{nil}
if test ! -e "obj"; then
mkdir obj
fi
@ -132,6 +137,9 @@ popd
%{_libdir}/cmake/cmocka/cmocka-config.cmake
%changelog
* Wed Jul 1 2020 Jeff Law <law@redhat.com> - 1.1.5-4
- Disable LTO
* Tue Jan 28 2020 Fedora Release Engineering <releng@fedoraproject.org> - 1.1.5-3
- Rebuilt for https://fedoraproject.org/wiki/Fedora_32_Mass_Rebuild