From: Dale Weiler Date: Fri, 28 Dec 2012 08:59:41 +0000 (+0000) Subject: Got it working on arm :) X-Git-Tag: before-library~463 X-Git-Url: https://git.xonotic.org/?p=xonotic%2Fgmqcc.git;a=commitdiff_plain;h=cfa7119fdb3931093db07109d00808cda70aa604 Got it working on arm :) --- diff --git a/Makefile b/Makefile index b8d953d..fb429a1 100644 --- a/Makefile +++ b/Makefile @@ -54,6 +54,12 @@ ifneq ("$(MINGW)", "") GMQCC = gmqcc.exe TESTSUITE = testsuite.exe else + #arm support for linux .. we need to allow unaligned accesses + #to memory otherwise we just segfault everywhere + ifneq (, $(findstring $(shell uname -m), "arm")) + CFLAGS += -munaligned-access + endif + QCVM = qcvm GMQCC = gmqcc TESTSUITE = testsuite