summaryrefslogtreecommitdiffstatshomepage
path: root/makefile
diff options
context:
space:
mode:
authorGravatarGravatar Jordi Mallach <jordi@mallach.net>2016-07-14 01:01:04 +0200
committerGravatarGravatar Jordi Mallach <jordi@mallach.net>2016-07-14 01:01:04 +0200
commit0e5db039d86e8f141f9e440faa167e9b2a4dd5c4 (patch)
tree19d83068c1220853c8e8a26c895a406090eb0a59 /makefile
parent62f2777ce2631f1cddd73d785f7885f0df5afc64 (diff)
Add arch defines for Linux alpha and mips64el.
Add detection for Linux architectures alpha and mips64el, to avoid using gcc -m64, which isn't available on them.
Diffstat (limited to 'makefile')
-rw-r--r--makefile11
1 files changed, 11 insertions, 0 deletions
diff --git a/makefile b/makefile
index 0f0cca80955..09ae6636549 100644
--- a/makefile
+++ b/makefile
@@ -140,6 +140,12 @@ endif
ifneq ($(filter %86,$(UNAME_P)),)
PLATFORM := x86
endif
+ifneq ($(filter alpha,$(UNAME_M)),)
+PLATFORM := alpha
+endif
+ifneq ($(filter alpha,$(UNAME_P)),)
+PLATFORM := alpha
+endif
ifneq ($(filter arm%,$(UNAME_M)),)
PLATFORM := arm
endif
@@ -155,6 +161,11 @@ endif
ifneq ($(filter powerpc,$(UNAME_P)),)
PLATFORM := powerpc
endif
+ifneq ($(filter mips64%,$(UNAME_M)),)
+ifeq ($(shell getconf LONG_BIT),64)
+PLATFORM := mips64
+endif
+endif
ifeq ($(firstword $(filter Linux,$(UNAME))),Linux)
OS := linux
endif