Disable LTO

This commit is contained in:
Jeff Law 2020-06-30 13:33:19 -06:00
parent 6db6ab8b82
commit 13b91ffd44
1 changed files with 9 additions and 1 deletions

View File

@ -2,7 +2,7 @@
Name: wsjtx
Version: 2.2.2
Release: 1%{?dist}
Release: 2%{?dist}
Summary: Weak Signal communication by K1JT
License: GPLv3+
@ -55,6 +55,11 @@ dos2unix *.ui *.iss *.rc *.txt
%build
# The fortran code in this package is not type safe and will thus not work
# with LTO. Additionally there are numerous bogus strncat calls that also
# need to be fixed for this package to work with LTO
%define _lto_cflags %{nil}
# Workaround for build with gcc-10, problem reported upstream
export CFLAGS="%{optflags} -fcommon"
export LDFLAGS="%{?__global_ldflags}"
@ -129,6 +134,9 @@ appstream-util validate-relax --nonet %{buildroot}%{_metainfodir}/*.appdata.xml
%changelog
* Tue Jun 30 2020 Jeff Law <law@redhat.com> - 2.2.2-2
- Disable LTO
* Mon Jun 22 2020 Richard Shaw <hobbes1069@gmail.com> - 2.2.2-1
- Update to 2.2.2.