From 4d636e8bff2d12f356f161c60f6a14fa83529717 Mon Sep 17 00:00:00 2001 From: Jeff Law Date: Thu, 6 Aug 2020 11:12:05 -0600 Subject: [PATCH] Disable LTO properly --- community-mysql.spec | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/community-mysql.spec b/community-mysql.spec index 5587cc9..044efa6 100644 --- a/community-mysql.spec +++ b/community-mysql.spec @@ -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 - 8.0.21-4 +- Disable LTO + * Sat Aug 01 2020 Fedora Release Engineering - 8.0.21-3 - Second attempt - Rebuilt for https://fedoraproject.org/wiki/Fedora_33_Mass_Rebuild