From 329d630c54c2bc492d1041e562996481caa1eb68 Mon Sep 17 00:00:00 2001 From: Jeff Law Date: Wed, 1 Jul 2020 12:14:05 -0600 Subject: [PATCH] Disable LTO --- cmocka.spec | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/cmocka.spec b/cmocka.spec index aea9f73..18f6951 100644 --- a/cmocka.spec +++ b/cmocka.spec @@ -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 - 1.1.5-4 +- Disable LTO + * Tue Jan 28 2020 Fedora Release Engineering - 1.1.5-3 - Rebuilt for https://fedoraproject.org/wiki/Fedora_32_Mass_Rebuild