diff --git a/mame.spec b/mame.spec index 1caedfa..c707e88 100644 --- a/mame.spec +++ b/mame.spec @@ -215,12 +215,10 @@ MAME_FLAGS="NOWERROR=1 OPTIMIZE=2 PYTHON_EXECUTABLE=python3 VERBOSE=1 \ USE_SYSTEM_LIB_ZLIB=1 \ SDL_INI_PATH=%{_sysconfdir}/%{name};" -#standard -g causes builder to run out of memory -%ifarch %{arm} %{ix86} riscv64 s390x +#standard -g caused problems with OOM or relocation overflows RPM_OPT_FLAGS=$(echo $RPM_OPT_FLAGS | sed "s@-g@-g1@") -%endif -#standard linker flags cause ld to fail due to insufficient memory -%ifarch %{arm} aarch64 %{ix86} x86_64 +#32-bit architectures need even more measures +%ifarch %{arm} %{ix86} RPM_LD_FLAGS="$RPM_LD_FLAGS -Wl,--no-keep-memory -Wl,--reduce-memory-overheads" %endif @@ -355,7 +353,7 @@ find $RPM_BUILD_ROOT%{_datadir}/%{name} -name LICENSE -exec rm {} \; * Thu Aug 30 2018 Julian Sikorski - 0.201-1 - Updated to 0.201 - Dropped upstreamed imgtool patch -- Expanded the list of architectures using memory-saving linker flags +- Expanded the list of architectures using memory-saving measures * Tue Jul 31 2018 Florian Weimer - 0.200-3 - Rebuild with fixed binutils