Accepting request 755273 from home:cgiboudeaux:branches:games

- Undefine _lto_cflags before building scummvm. The lto flags are
  incompatible with -gsplit-dwarf which scummvm relies on.

OBS-URL: https://build.opensuse.org/request/show/755273
OBS-URL: https://build.opensuse.org/package/show/games/scummvm?expand=0&rev=55
This commit is contained in:
Michael Vetter 2019-12-10 11:14:32 +00:00 committed by Git OBS Bridge
parent 2e4795e294
commit 966b4d2a75
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> Sat Oct 12 12:38:37 UTC 2019 - Luigi Baldoni <aloisio@gmx.com>

View File

@ -1,7 +1,7 @@
# #
# spec file for package scummvm # 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 # All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed # 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 sed -i '/tmp_endianness_check.cpp/ s/$CXXFLAGS/$CXXFLAGS -fno-lto -O0/' configure
%build %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 # No rpm configure because scummvm's configure isn't a real configure and thus
# doesn't understand some of the options %%configure passes. # doesn't understand some of the options %%configure passes.
CXXFLAGS="%{optflags}" ; export CXXFLAGS ; \ CXXFLAGS="%{optflags}" ; export CXXFLAGS ; \