Line 0
Link Here
|
|
|
1 |
--- Makefile.orig 2014-06-10 12:49:13.000000000 +0400 |
2 |
+++ Makefile 2014-06-10 14:46:24.000000000 +0400 |
3 |
@@ -4,13 +4,13 @@ |
4 |
# - Use "x86" for a build on x86 (32-bits) |
5 |
# - Use "amd64" for a build on x86_64 (64-bits) |
6 |
# - Use "nojit" for unsupported architectures. |
7 |
-ifeq ($(shell arch),x86_64) |
8 |
-export DYNAMIPS_ARCH?=amd64 |
9 |
+ifeq ($(DYNAMIPS_ARCH),) |
10 |
+ifneq ($(findstring $(shell uname -m),x86_64 amd64),) |
11 |
+export DYNAMIPS_ARCH=amd64 |
12 |
+else ifneq ($(findstring $(shell uname -m),i686 i386),) |
13 |
+export DYNAMIPS_ARCH=x86 |
14 |
else |
15 |
-ifeq ($(shell arch),i686) |
16 |
-export DYNAMIPS_ARCH?=x86 |
17 |
-else |
18 |
-export DYNAMIPS_ARCH?=nojit |
19 |
+export DYNAMIPS_ARCH=nojit |
20 |
endif |
21 |
endif |
22 |
|