From e7bbbf4f453ea4da229ebd4a72726fc58540ecb9 Mon Sep 17 00:00:00 2001 From: Julian Sikorski Date: Mon, 7 Nov 2016 23:42:32 +0100 Subject: Fixed building on s390x --- makefile | 12 ++++++++++++ 1 file changed, 12 insertions(+) (limited to 'makefile') 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 -- cgit v1.2.3