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

Commit

Permalink
Merge pull request #697 from MartinNowak/fixAutoMODEL
Browse files Browse the repository at this point in the history
detect other uname -m outputs
  • Loading branch information
andralex committed Dec 22, 2013
2 parents dad2045 + 5144411 commit 53883db
Showing 1 changed file with 8 additions and 12 deletions.
20 changes: 8 additions & 12 deletions posix.mak
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 53883db

Please sign in to comment.