From 1924618e9789b72a28c135e391d7fc63abb2b103 Mon Sep 17 00:00:00 2001 From: Jeff Law Date: Wed, 1 Jul 2020 12:29:15 -0600 Subject: [PATCH] Disable LTO --- wine.spec | 12 +++++++++++- 1 file changed, 11 insertions(+), 1 deletion(-) diff --git a/wine.spec b/wine.spec index cd74653..3091bf4 100644 --- a/wine.spec +++ b/wine.spec @@ -45,7 +45,7 @@ Name: wine Version: 5.10 -Release: 1%{?dist} +Release: 2%{?dist} Summary: A compatibility layer for windows applications License: LGPLv2+ @@ -711,6 +711,13 @@ sed -i -e 's!^loader server: libs/port libs/wine tools.*!& include!' Makefile.in # 0%%{?wine_staging} %build +# This package uses top level ASM constructs which are incompatible with LTO. +# Top level ASMs are often used to implement symbol versioning. gcc-10 +# introduces a new mechanism for symbol versioning which works with LTO. +# Converting packages to use that mechanism instead of toplevel ASMs is +# recommended. +# Disable LTO +%define _lto_cflags %{nil} # disable fortify as it breaks wine # http://bugs.winehq.org/show_bug.cgi?id=24606 @@ -2336,6 +2343,9 @@ fi %endif %changelog +* Wed Jul 01 2020 Jeff Law 5.10-2 +- Disable LTO + * Sun Jun 07 2020 Michael Cronenworth 5.10-1 - version update