]> de.git.xonotic.org Git - xonotic/gmqcc.git/commitdiff
Got it working on arm :)
authorDale Weiler <killfieldengine@gmail.com>
Fri, 28 Dec 2012 08:59:41 +0000 (08:59 +0000)
committerDale Weiler <killfieldengine@gmail.com>
Fri, 28 Dec 2012 08:59:41 +0000 (08:59 +0000)
Makefile

index b8d953da7c2f0055f0a6fb6391f90964dec64f6a..fb429a123038ca194eae7dd0e454e1d351511e07 100644 (file)
--- 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