From 07ce729229934c651bfeb8ef00bd39c902103bb9 Mon Sep 17 00:00:00 2001 From: Martin Nowak Date: Mon, 3 Feb 2014 09:40:55 +0100 Subject: [PATCH] also detect amd64, i386 and 1586 --- posix.mak | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/posix.mak b/posix.mak index 091a6e0908a..cafb4e6c713 100644 --- a/posix.mak +++ b/posix.mak @@ -54,14 +54,14 @@ endif ifeq (,$(MODEL)) uname_M:=$(shell uname -m) - ifeq (x86_64,$(uname_M)) - MODEL=64 - else - ifeq (i686,$(uname_M)) - MODEL=32 - else - $(error Cannot figure 32/64 model from uname -m: $(uname_M)) - endif + ifneq (,$(findstring $(uname_M),x86_64 amd64)) + MODEL:=64 + endif + ifneq (,$(findstring $(uname_M),i386 i586 i686)) + MODEL:=32 + endif + ifeq (,$(MODEL)) + $(error Cannot figure 32/64 model from uname -m: $(uname_M)) endif endif