From ebb69f699cd1392cbe7a865f9f51dbbecdd99b59 Mon Sep 17 00:00:00 2001 From: Martin Michlmayr Date: Tue, 30 Jun 2015 14:22:49 -0400 Subject: [PATCH] Add support for Aarch64 (ARM64) Add support for Aarch64, the 64-bit ARM architecture. --- Makefile | 4 ++++ code/qcommon/q_platform.h | 2 ++ 2 files changed, 6 insertions(+) diff --git a/Makefile b/Makefile index 621fc30dfc..47db4bd87a 100644 --- a/Makefile +++ b/Makefile @@ -335,6 +335,10 @@ ifneq (,$(findstring "$(PLATFORM)", "linux" "gnu_kfreebsd" "kfreebsd-gnu")) else ifeq ($(ARCH),s390x) LIB=lib64 + else + ifeq ($(ARCH),aarch64) + LIB=lib64 + endif endif endif endif diff --git a/code/qcommon/q_platform.h b/code/qcommon/q_platform.h index 999dd39aac..ad606704ee 100644 --- a/code/qcommon/q_platform.h +++ b/code/qcommon/q_platform.h @@ -205,6 +205,8 @@ Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA #define ARCH_STRING "sparc" #elif defined __arm__ #define ARCH_STRING "arm" +#elif defined __aarch64__ +#define ARCH_STRING "aarch64" #elif defined __cris__ #define ARCH_STRING "cris" #elif defined __hppa__