Disable LTO

This commit is contained in:
Jeff Law 2020-07-08 16:13:28 -06:00
parent 73402fbec5
commit 4c77fedae7
1 changed files with 9 additions and 1 deletions

View File

@ -1,6 +1,6 @@
Name: libindi
Version: 1.8.1
Release: 3%{?dist}
Release: 4%{?dist}
Summary: Instrument Neutral Distributed Interface
License: LGPLv2+ and GPLv2+
@ -69,6 +69,11 @@ chmod -x drivers/telescope/lx200fs2.h
chmod -x drivers/telescope/lx200fs2.cpp
%build
# This package tries to mix and match PIE and PIC which is wrong and will
# trigger link errors when LTO is enabled.
# Disable LTO
%define _lto_cflags %{nil}
%cmake .
make VERBOSE=1 %{?_smp_mflags}
@ -98,6 +103,9 @@ make install DESTDIR=%{buildroot}
%{_libdir}/*.a
%changelog
* Wed Jul 08 2020 Jeff Law <law@redhat.com> 1.8.1-4
- Disable LTO
* Sun Mar 01 2020 Sergio Pascual <sergiopr@fedoraproject.org> 1.8.1-3
- Patch stime in arm (bz#1799588)