Commit ec79562352a094dfa09c41fd9636a1b835fc771e

czurnieden 2019-02-27T15:47:28

offer alternative to arch

1
2
3
4
5
6
7
8
9
10
11
12
13
diff --git a/makefile_include.mk b/makefile_include.mk
index 5ebcd5d..2cc33fa 100644
--- a/makefile_include.mk
+++ b/makefile_include.mk
@@ -92,7 +92,7 @@ endif
 ifeq ($(PLATFORM),FreeBSD)
   _ARCH := $(shell sysctl -b hw.machine_arch)
 else
-  _ARCH := $(shell arch)
+  _ARCH := $(shell sh -c "if command -v arch 1> /dev/null;then arch;else uname -m;fi")
 endif
 
 # adjust coverage set