]> git.pld-linux.org Git - packages/mame.git/commitdiff
- x32: pass PTR64=0 and empty ARCHITECTURE to avoid assuming x86_64 ABI (-m64)
authorJakub Bogusz <qboosh@pld-linux.org>
Sun, 29 Nov 2015 14:34:58 +0000 (15:34 +0100)
committerJakub Bogusz <qboosh@pld-linux.org>
Sun, 29 Nov 2015 14:34:58 +0000 (15:34 +0100)
- disable debuginfo on 32-bit x86 (linker memory exhausted)

mame.spec

index 16735d8c805b870946cd920332c73fb599d1be26..62e01a3742c742261d3fffcb77d69dce77284b37 100644 (file)
--- 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.
 
@@ -80,6 +85,10 @@ udowodnić wierne odtworzenie sprzętu?).
 %endif
 %ifarch %{x8664} alpha ia64 ppc64 s390x sparc64
        PTR64=1 \
+%endif
+%ifarch x32
+       PTR64=0 \
+       ARCHITECTURE= \
 %endif
        CC="%{__cc}" \
        CXX="%{__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
This page took 0.169188 seconds and 4 git commands to generate.