Disable LTO properly

This commit is contained in:
Jeff Law 2020-08-06 11:12:05 -06:00 committed by Michal Schorm
parent d4fc909340
commit 77266db250

View File

@ -67,7 +67,7 @@
Name: community-mysql Name: community-mysql
Version: 8.0.21 Version: 8.0.21
Release: 3%{?with_debug:.debug}%{?dist} Release: 4%{?with_debug:.debug}%{?dist}
Summary: MySQL client programs and shared libraries Summary: MySQL client programs and shared libraries
URL: http://www.mysql.com URL: http://www.mysql.com
@ -450,6 +450,10 @@ cp %{SOURCE2} %{SOURCE3} %{SOURCE10} %{SOURCE11} %{SOURCE12} \
%{SOURCE14} %{SOURCE15} %{SOURCE17} %{SOURCE18} %{SOURCE31} scripts %{SOURCE14} %{SOURCE15} %{SOURCE17} %{SOURCE18} %{SOURCE31} scripts
%build %build
# This package internally tries to eliminate LTO flags
# but fails miserably. Just disable for the whole package
# until the package internals are fixed
%define _lto_cflags %{nil}
%{set_build_flags} %{set_build_flags}
# fail quickly and obviously if user tries to build as root # fail quickly and obviously if user tries to build as root
@ -863,6 +867,9 @@ fi
%endif %endif
%changelog %changelog
* Thu Aug 06 2020 Jeff Law <law@redhat.com> - 8.0.21-4
- Disable LTO
* Sat Aug 01 2020 Fedora Release Engineering <releng@fedoraproject.org> - 8.0.21-3 * Sat Aug 01 2020 Fedora Release Engineering <releng@fedoraproject.org> - 8.0.21-3
- Second attempt - Rebuilt for - Second attempt - Rebuilt for
https://fedoraproject.org/wiki/Fedora_33_Mass_Rebuild https://fedoraproject.org/wiki/Fedora_33_Mass_Rebuild