[packages/mame] - x32: pass PTR64=0 and empty ARCHITECTURE to avoid assuming x86_64 ABI (-m64) - disable debuginfo o

qboosh qboosh at pld-linux.org
Sun Nov 29 15:34:23 CET 2015


commit 18f4a813eb47571b6c99566d84d8816716d79766
Author: Jakub Bogusz <qboosh at pld-linux.org>
Date:   Sun Nov 29 15:34:58 2015 +0100

    - x32: pass PTR64=0 and empty ARCHITECTURE to avoid assuming x86_64 ABI (-m64)
    - disable debuginfo on 32-bit x86 (linker memory exhausted)

 mame.spec | 11 ++++++++++-
 1 file changed, 10 insertions(+), 1 deletion(-)
---
diff --git a/mame.spec b/mame.spec
index 16735d8..62e01a3 100644
--- a/mame.spec
+++ b/mame.spec
@@ -42,6 +42,11 @@ Obsoletes:	xmame-xmess-svgalib
 Obsoletes:	xmame-xmess-x11
 BuildRoot:	%{tmpdir}/%{name}-%{version}-root-%(id -u -n)
 
+%ifarch %{ix86} x32
+# linker memory exhausted on 32-bit x86
+%define		_enable_debug_packages	0
+%endif
+
 %description
 MAME stands for Multiple Arcade Machine Emulator.
 
@@ -81,6 +86,10 @@ udowodnić wierne odtworzenie sprzętu?).
 %ifarch %{x8664} alpha ia64 ppc64 s390x sparc64
 	PTR64=1 \
 %endif
+%ifarch x32
+	PTR64=0 \
+	ARCHITECTURE= \
+%endif
 	CC="%{__cc}" \
 	CXX="%{__cxx}" \
 	LD="%{__cxx}" \
@@ -102,7 +111,7 @@ udowodnić wierne odtworzenie sprzętu?).
 rm -rf $RPM_BUILD_ROOT
 install -d $RPM_BUILD_ROOT%{_bindir}
 
-%ifarch %{x8664}
+%ifarch %{x8664} ppc64
 install mame64 $RPM_BUILD_ROOT%{_bindir}/mame
 %else
 install mame $RPM_BUILD_ROOT%{_bindir}/mame
================================================================

---- gitweb:

http://git.pld-linux.org/gitweb.cgi/packages/mame.git/commitdiff/18f4a813eb47571b6c99566d84d8816716d79766



More information about the pld-cvs-commit mailing list