This is an automated email from the git hooks/post-receive script.

smcv pushed a commit to annotated tag 1.42d
in repository iortcw.

commit 280e54e63bbf8ddaa0c570cb89d52b7824505698
Author: Simon McVittie <s...@debian.org>
Date:   Tue Jul 14 22:51:55 2015 +0100

    build: canonicalize all ARM variants to "arm", matching q_platform.h
    
    The ARCH in the Makefile must match the ARCH_STRING in q_platform.h;
    otherwise, ioquake3 will install (for instance) uiARCH.so but look for
    uiARCH_STRING.so, which isn't going to go well (particularly for
    the modular renderer).
    
    Like i386, but unlike most (all?) other Linux platforms, uname -m on
    32-bit ARM machines can have various results starting with "arm",
    depending on the specific CPU version (e.g. Raspberry Pi is armv6l,
    RPi2 is armv7l). Again similar to the x86 family,
    it's appropriate for them to share an architecture suffix;
    q_platform.h has traditionally used "arm" so let's use that.
    
    64-bit ARM makes a clean break from this, much like 64-bit x86 does:
    uname -m produces a string not starting with arm (specifically
    "aarch64"), and gcc predefines __aarch64__ instead of __arm__.
    As a result, it is unaffected by this change.
---
 MP/Makefile | 2 +-
 SP/Makefile | 2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/MP/Makefile b/MP/Makefile
index f718ee4..530eaa7 100644
--- a/MP/Makefile
+++ b/MP/Makefile
@@ -6,7 +6,7 @@
 
 COMPILE_PLATFORM=$(shell uname|sed -e s/_.*//|tr '[:upper:]' '[:lower:]'|sed 
-e 's/\//_/g')
 
-COMPILE_ARCH=$(shell uname -m | sed -e s/i.86/i386/)
+COMPILE_ARCH=$(shell uname -m | sed -e s/i.86/i386/ | sed -e 's/^arm.*/arm/')
 
 ifeq ($(COMPILE_PLATFORM),sunos)
   # Solaris uname and GNU uname differ
diff --git a/SP/Makefile b/SP/Makefile
index 8f5b3c0..8de3486 100644
--- a/SP/Makefile
+++ b/SP/Makefile
@@ -6,7 +6,7 @@
 
 COMPILE_PLATFORM=$(shell uname|sed -e s/_.*//|tr '[:upper:]' '[:lower:]'|sed 
-e 's/\//_/g')
 
-COMPILE_ARCH=$(shell uname -m | sed -e s/i.86/i386/)
+COMPILE_ARCH=$(shell uname -m | sed -e s/i.86/i386/ | sed -e 's/^arm.*/arm/')
 
 ifeq ($(COMPILE_PLATFORM),sunos)
   # Solaris uname and GNU uname differ

-- 
Alioth's /usr/local/bin/git-commit-notice on 
/srv/git.debian.org/git/pkg-games/iortcw.git

_______________________________________________
Pkg-games-commits mailing list
Pkg-games-commits@lists.alioth.debian.org
http://lists.alioth.debian.org/cgi-bin/mailman/listinfo/pkg-games-commits

Reply via email to