Check uname -m in Makefile and compile 64-bit if expected.

This commit is contained in:
Schuyler Erle 2016-12-10 17:40:39 -08:00
parent 11e9e18e97
commit 5b00929955
1 changed files with 5 additions and 1 deletions

View File

@ -68,8 +68,12 @@ endif
# Change as required in support of the available libraries
#CC := $(DARWIN_CC) -m64 $(SYS_LIBS) $(SYS_MIN)
UNAME_M := $(shell uname -m)
ifeq (${UNAME_M},x86_64)
CC := $(DARWIN_CC) -m64 $(SYS_LIBS) $(SYS_MIN)
else
CC := $(DARWIN_CC) -m32 $(SYS_LIBS) $(SYS_MIN)
endif
CFLAGS := -Os -pthread -Igeotranz $(EXTRA_CFLAGS)
# $(info $$CC is [${CC}])