summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--core/makefile2
-rw-r--r--makefile2
2 files changed, 2 insertions, 2 deletions
diff --git a/core/makefile b/core/makefile
index 46c0d313b..31b3b9026 100644
--- a/core/makefile
+++ b/core/makefile
@@ -169,7 +169,7 @@ ARCH :=$(if $(findstring windows,$(PLAT)),x86,$(ARCH))
ARCH :=$(if $(findstring msys,$(PLAT)),$(MSYSARCH),$(ARCH))
ARCH :=$(if $(findstring cygwin,$(PLAT)),x$(shell getconf LONG_BIT),$(ARCH))
ARCH :=$(if $(findstring macosx,$(PLAT)),x$(shell getconf LONG_BIT),$(ARCH))
-ARCH :=$(if $(findstring linux,$(PLAT)),x$(shell getconf LONG_BIT),$(ARCH))
+ARCH :=$(if $(findstring linux,$(PLAT)),$(shell uname -m),$(ARCH))
ARCH :=$(if $(findstring bsd,$(PLAT)),x$(shell getconf LONG_BIT),$(ARCH))
ARCH :=$(if $(findstring iphoneos,$(PLAT)),armv7,$(ARCH))
ARCH :=$(if $(findstring android,$(PLAT)),armv7,$(ARCH))
diff --git a/makefile b/makefile
index 2f10dd82f..7067f491e 100644
--- a/makefile
+++ b/makefile
@@ -43,7 +43,7 @@ ARCH :=$(if $(findstring windows,$(PLAT)),x86,$(ARCH))
ARCH :=$(if $(findstring msys,$(PLAT)),$(MSYSARCH),$(ARCH))
ARCH :=$(if $(findstring cygwin,$(PLAT)),x$(shell getconf LONG_BIT),$(ARCH))
ARCH :=$(if $(findstring macosx,$(PLAT)),x$(shell getconf LONG_BIT),$(ARCH))
-ARCH :=$(if $(findstring linux,$(PLAT)),x$(shell getconf LONG_BIT),$(ARCH))
+ARCH :=$(if $(findstring linux,$(PLAT)),$(shell uname -m),$(ARCH))
ARCH :=$(if $(findstring bsd,$(PLAT)),x$(shell getconf LONG_BIT),$(ARCH))
ARCH :=$(if $(findstring iphoneos,$(PLAT)),armv7,$(ARCH))
ARCH :=$(if $(findstring android,$(PLAT)),armv7,$(ARCH))