Commit 149a1bdb authored by Pavel Lobashov's avatar Pavel Lobashov Committed by GitHub

Use `uname -m` for determine linux x64\x686

`uname -p` return `unknown` on several system (including debian, but not including ubuntu)
parent a79d9041
......@@ -21,11 +21,11 @@ else
LIB_PREFIX := lib
MAKE := make -j $(shell grep -c ^processor /proc/cpuinfo)
endif
UNAME_P := $(shell uname -p)
ifeq ($(UNAME_P),x86_64)
UNAME_M := $(shell uname -m)
ifeq ($(UNAME_M),x86_64)
ARCHITECTURE := 64
endif
ifneq ($(filter %86,$(UNAME_P)),)
ifneq ($(filter %86,$(UNAME_M)),)
ARCHITECTURE := 32
endif
endif
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment