Disable LTO properly

This commit is contained in:
Jeff Law 2020-08-06 11:12:05 -06:00
parent e0b1fcc4e0
commit 4d636e8bff

View File

@ -67,7 +67,7 @@
Name: community-mysql
Version: 8.0.21
Release: 3%{?with_debug:.debug}%{?dist}
Release: 4%{?with_debug:.debug}%{?dist}
Summary: MySQL client programs and shared libraries
URL: http://www.mysql.com
@ -450,6 +450,10 @@ cp %{SOURCE2} %{SOURCE3} %{SOURCE10} %{SOURCE11} %{SOURCE12} \
%{SOURCE14} %{SOURCE15} %{SOURCE17} %{SOURCE18} %{SOURCE31} scripts
%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}
# fail quickly and obviously if user tries to build as root
@ -863,6 +867,9 @@ fi
%endif
%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
- Second attempt - Rebuilt for
https://fedoraproject.org/wiki/Fedora_33_Mass_Rebuild