summaryrefslogtreecommitdiffstatshomepage
path: root/makefile
diff options
context:
space:
mode:
authorGravatarGravatar Julian Sikorski <belegdol+github@gmail.com>2016-11-07 23:42:32 +0100
committerGravatarGravatar Julian Sikorski <belegdol+github@gmail.com>2016-11-07 23:42:32 +0100
commite7bbbf4f453ea4da229ebd4a72726fc58540ecb9 (patch)
tree583599c87dcf94f568c23501b74062db7b92d615 /makefile
parent16cff8a8386b98dfdc4f1171f56b6bad21965900 (diff)
Fixed building on s390x
Diffstat (limited to 'makefile')
-rw-r--r--makefile12
1 files changed, 12 insertions, 0 deletions
diff --git a/makefile b/makefile
index 6c3518f3925..dcfb3aa0ce8 100644
--- a/makefile
+++ b/makefile
@@ -283,6 +283,9 @@ endif
ifeq ($(firstword $(filter ppc64le,$(UNAME))),ppc64le)
ARCHITECTURE := _x64
endif
+ifeq ($(firstword $(filter s390x,$(UNAME))),s390x)
+ARCHITECTURE := _x64
+endif
endif
else
@@ -328,6 +331,12 @@ ifndef NOASM
endif
endif
+ifeq ($(findstring s390x,$(UNAME)),s390x)
+ifndef NOASM
+ NOASM := 1
+endif
+endif
+
# Emscripten
ifeq ($(findstring emcc,$(CC)),emcc)
TARGETOS := asmjs
@@ -351,6 +360,9 @@ else
BIGENDIAN := 1
endif
endif
+ifneq (,$(findstring s390x,$(UNAME)))
+BIGENDIAN := 1
+endif
endif # BIGENDIAN
ifndef PYTHON_EXECUTABLE