Skip to content
This repository has been archived by the owner on Oct 12, 2022. It is now read-only.

Commit

Permalink
detect other uname -m outputs
Browse files Browse the repository at this point in the history
- x86_64, amd64 => MODEL:=64
- i386, i586, i686 => MODEL:32
  • Loading branch information
MartinNowak committed Dec 22, 2013
1 parent dad2045 commit 5144411
Showing 1 changed file with 8 additions and 12 deletions.
20 changes: 8 additions & 12 deletions posix.mak
Original file line number Diff line number Diff line change
Expand Up @@ -32,18 +32,14 @@ endif

ifeq (,$(MODEL))
uname_M:=$(shell uname -m)
ifeq (x86_64,$(uname_M))
MODEL=64
else
ifeq (i686,$(uname_M))
MODEL=32
else
ifeq (i386,$(uname_M))
MODEL=32
else
$(error Cannot figure 32/64 model from uname -m: $(uname_M))
endif
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

Expand Down

0 comments on commit 5144411

Please sign in to comment.