build with -fno-delete-null-pointer-checks to workaround gcc6-related runtime crashes (#1303643)

This commit is contained in:
Rex Dieter 2016-02-02 10:04:10 -06:00
parent df27ad1199
commit 839a53f30b

View File

@ -17,7 +17,7 @@
Summary: Qt5 - QtDeclarative component Summary: Qt5 - QtDeclarative component
Name: qt5-%{qt_module} Name: qt5-%{qt_module}
Version: 5.6.0 Version: 5.6.0
Release: 0.7.%{prerelease}%{?dist} Release: 0.8.%{prerelease}%{?dist}
# See LICENSE.GPL LICENSE.LGPL LGPL_EXCEPTION.txt, for details # See LICENSE.GPL LICENSE.LGPL LGPL_EXCEPTION.txt, for details
License: LGPLv2 with exceptions or GPLv3 with exceptions License: LGPLv2 with exceptions or GPLv3 with exceptions
@ -92,6 +92,13 @@ Requires: %{name}%{?_isa} = %{version}-%{release}
%build %build
# build with -fno-delete-null-pointer-checks to workaround
# https://bugzilla.redhat.com/show_bug.cgi?id=1303643
CFLAGS="$RPM_OPT_FLAGS -fno-delete-null-pointer-checks"
CXXFLAGS="$RPM_OPT_FLAGS -fno-delete-null-pointer-checks"
export CFLAGS CXXFLAGS
mkdir %{_target_platform} mkdir %{_target_platform}
pushd %{_target_platform} pushd %{_target_platform}
%{qmake_qt5} .. %{qmake_qt5} ..
@ -214,6 +221,9 @@ popd
%changelog %changelog
* Tue Feb 02 2016 Rex Dieter <rdieter@fedoraproject.org> 5.6.0-0.8.beta
- build with -fno-delete-null-pointer-checks to workaround gcc6-related runtime crashes (#1303643)
* Thu Jan 28 2016 Rex Dieter <rdieter@fedoraproject.org> 5.6.0-0.7.beta * Thu Jan 28 2016 Rex Dieter <rdieter@fedoraproject.org> 5.6.0-0.7.beta
- backport fix for older compilers (aka rhel6) - backport fix for older compilers (aka rhel6)