Disable LTO

This commit is contained in:
Jeff Law 2020-07-01 12:49:38 -06:00
parent d8dc56af0a
commit 171b772331

View File

@ -3,7 +3,7 @@
Summary: Qt5 - Qt3D QML bindings and C++ APIs
Name: qt5-%{qt_module}
Version: 5.14.2
Release: 1%{?dist}
Release: 2%{?dist}
# See LICENSE.GPL LICENSE.LGPL LGPL_EXCEPTION.txt, for details
# See also http://doc.qt.io/qt-5/licensing.html
@ -51,6 +51,12 @@ Requires: %{name}%{?_isa} = %{version}-%{release}
%build
# QT is known not to work properly with LTO at this point. Some of the issues
# are being worked on upstream and disabling LTO should be re-evaluated as
# we update this change. Until such time...
# Disable LTO
%define _lto_cflags %{nil}
%{qmake_qt5}
%make_build
@ -166,6 +172,9 @@ popd
%changelog
* Wed Jul 01 2020 Jeff Law <law@redhat.com> - 5.14.2-2
- Disable LTO
* Sat Apr 04 2020 Rex Dieter <rdieter@fedoraproject.org> - 5.14.2-1
- 5.14.2