use uname -m when uname -i fails

fixes arch detection with Linux/x86_64
This commit is contained in:
Jindřich Makovička 2012-07-11 21:34:23 +02:00
parent 83966b070f
commit 2d36594fa2

View file

@ -133,6 +133,9 @@ ifeq ($(ARCH),)
ARCH := i386
else
ARCH := $(shell uname -i)
ifeq ($(ARCH),unknown)
ARCH := $(shell uname -m)
endif
endif
endif