summaryrefslogtreecommitdiff
blob: 41fc6d521c66bfb2a2812eb63cc877d0254defb4 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
From 181857089b11045c701e9195275a408430beb580 Mon Sep 17 00:00:00 2001
From: Mounir IDRASSI <mounir.idrassi@idrix.fr>
Date: Sat, 5 Nov 2016 23:39:46 +0100
Subject: [PATCH] Linux: Always use "uname -m" to determine processor type.
 This fixes Slackware build issue.

---
 src/Makefile | 5 +----
 1 file changed, 1 insertion(+), 4 deletions(-)

diff --git a/src/Makefile b/src/Makefile
index 7bfc5ad..00e6e5b 100644
--- src/Makefile
+++ src/Makefile
@@ -131,10 +131,7 @@ export PLATFORM_UNSUPPORTED := 0
 export CPU_ARCH ?= unknown
 export SIMD_SUPPORTED := 0
 
-ARCH = $(shell uname -p)
-ifeq "$(ARCH)" "unknown"
-	ARCH = $(shell uname -m)
-endif
+ARCH = $(shell uname -m)
 
 ifneq (,$(filter i386 i486 i586 i686 x86,$(ARCH)))
 	CPU_ARCH = x86