Dominique Leuenberger 2019-12-10 21:44:06 +00:00 committed by Git OBS Bridge
commit 82ba59a279
2 changed files with 10 additions and 1 deletions

View File

@ -1,3 +1,9 @@
-------------------------------------------------------------------
Mon Dec 9 15:01:25 UTC 2019 - Christophe Giboudeaux <christophe@krop.fr>
- Undefine _lto_cflags before building scummvm. The lto flags are
incompatible with -gsplit-dwarf which scummvm relies on.
-------------------------------------------------------------------
Sat Oct 12 12:38:37 UTC 2019 - Luigi Baldoni <aloisio@gmx.com>

View File

@ -1,7 +1,7 @@
#
# spec file for package scummvm
#
# Copyright (c) 2019 SUSE LINUX GmbH, Nuernberg, Germany.
# Copyright (c) 2019 SUSE LLC
#
# All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed
@ -84,6 +84,9 @@ These engines are in a worse state, but allow to play extra games.
sed -i '/tmp_endianness_check.cpp/ s/$CXXFLAGS/$CXXFLAGS -fno-lto -O0/' configure
%build
# scummvm relies on -gsplit-dwarf which is incompatible with -flto
%define _lto_cflags %{nil}
# No rpm configure because scummvm's configure isn't a real configure and thus
# doesn't understand some of the options %%configure passes.
CXXFLAGS="%{optflags}" ; export CXXFLAGS ; \