Re-enable LTO

This commit is contained in:
Jeff Law 2022-02-12 13:56:05 -05:00
parent 3e904a6159
commit 1c866a75e7

View File

@ -5,7 +5,7 @@
Name: guitarix Name: guitarix
Version: 0.43.1 Version: 0.43.1
Release: 2%{?dist} Release: 3%{?dist}
Summary: A virtual guitar amplifier Summary: A virtual guitar amplifier
License: GPLv2+ License: GPLv2+
URL: http://guitarix.sourceforge.net/ URL: http://guitarix.sourceforge.net/
@ -136,12 +136,6 @@ rm -fr src/zita-convolver src/zita-resampler
sed -i -e 's|-O3||' wscript sed -i -e 's|-O3||' wscript
%build %build
# This package uses a custom linker script. At first glance I would expect
# what the script is doing to work. Unfortunately the build system does not
# make it easy to run specific steps by hand, so I can't really dig into
# what's going on. Disable LTO for now.
%define _lto_cflags %{nil}
%set_build_flags %set_build_flags
CXXFLAGS+=" -fomit-frame-pointer -ftree-loop-linear -ffinite-math-only -fno-math-errno -fno-signed-zeros -fstrength-reduce" CXXFLAGS+=" -fomit-frame-pointer -ftree-loop-linear -ffinite-math-only -fno-math-errno -fno-signed-zeros -fstrength-reduce"
%ifarch %{ix86} %ifarch %{ix86}
@ -214,6 +208,9 @@ appstream-util validate-relax --nonet %{buildroot}%{_metainfodir}/org.%{name}.%{
%{_libdir}/lv2/* %{_libdir}/lv2/*
%changelog %changelog
* Sat Feb 12 2022 Jeff Law <jeffreyalaw@gmail.com> - 0.43.1-3
- Re-enable LTO
* Thu Jan 20 2022 Fedora Release Engineering <releng@fedoraproject.org> - 0.43.1-2 * Thu Jan 20 2022 Fedora Release Engineering <releng@fedoraproject.org> - 0.43.1-2
- Rebuilt for https://fedoraproject.org/wiki/Fedora_36_Mass_Rebuild - Rebuilt for https://fedoraproject.org/wiki/Fedora_36_Mass_Rebuild