diff --git a/mednafen.spec b/mednafen.spec index 7c31bf8..39d7630 100644 --- a/mednafen.spec +++ b/mednafen.spec @@ -5,7 +5,7 @@ Name: mednafen Version: 1.24.3 -Release: 1%{?dist} +Release: 2%{?dist} Summary: A multi-system emulator utilizing OpenGL and SDL #mednafen incorporates several emulators hence the colourful licensing License: GPLv2+ and BSD and ISC and LGPLv2+ and MIT and zlib @@ -69,6 +69,13 @@ find \( -name \*.c\* -or -name \*.h\* -or -name \*.inc \) -exec chmod -x {} \; %build +# This package has a configure test which uses ASMs, but does not link the +# resultant .o files. As such the ASM test is always successful, even on +# architectures were the ASM is not valid. The test should be fixed, +# or alternately we could consider using -ffat-lto-objects, though we +# generally recommend against that. For now, disable LTO. +%define _lto_cflags %{nil} + CFLAGS="$RPM_OPT_FLAGS -Wl,-z,relro -Wl,-z,now" CXXFLAGS="$RPM_OPT_FLAGS -Wl,-z,relro -Wl,-z,now" @@ -104,6 +111,9 @@ rm -rf Documentation/*.def Documentation/*.php Documentation/generate.sh \ %changelog +* Tue Jul 14 2020 Jeff Law - 1.24.3-2 +- Disable LTO + * Mon May 04 2020 Julian Sikorski - 1.24.3-1 - Update to 1.24.3