From 8ddd70582ca83f3e9f725136649450125e53a527 Mon Sep 17 00:00:00 2001 From: Jeff Law Date: Thu, 20 Aug 2020 16:09:34 -0600 Subject: [PATCH] Re-enable LTO --- lcdproc.spec | 17 +++++++++++------ 1 file changed, 11 insertions(+), 6 deletions(-) diff --git a/lcdproc.spec b/lcdproc.spec index 2412791..1fdd1c3 100644 --- a/lcdproc.spec +++ b/lcdproc.spec @@ -5,7 +5,7 @@ Summary: Display real-time system information on a 20x4 back-lit LCD Name: lcdproc Version: 0.5.9 -Release: 9.%{commitdate}git%{shortcommit}%{?dist} +Release: 10.%{commitdate}git%{shortcommit}%{?dist} License: GPLv2 URL: http://lcdproc.org Source0: https://github.com/%{name}/%{name}/archive/%{commit}/%{name}-%{shortcommit}.tar.gz @@ -72,11 +72,13 @@ touch -r TODO LCDd.conf %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} +# resultant .o files. As such the ASM test is always successful in a LTO +# build. We can force code generation with the -ffat-lto-objects to make +# the test work as expected. +# +# -ffat-lto-objects is the default for F33, but will not be for F34, so we +# make it explicit here. +%define _lto_cflags -flto=auto -ffat-lto-objects autoreconf -vif %configure \ @@ -155,6 +157,9 @@ done %changelog +* Thu Aug 20 2020 Jeff Law - 0.5.9-10.20190625git781b311 +- Re-enable LTO + * Tue Jul 28 2020 Fedora Release Engineering - 0.5.9-9.20190625git781b311 - Rebuilt for https://fedoraproject.org/wiki/Fedora_33_Mass_Rebuild