]> de.git.xonotic.org Git - xonotic/gmqcc.git/blobdiff - Makefile
Got it working on arm :)
[xonotic/gmqcc.git] / 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