mirror of https://github.com/wb2osz/direwolf.git
Check uname -m in Makefile and compile 64-bit if expected.
This commit is contained in:
parent
11e9e18e97
commit
5b00929955
|
@ -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}])
|
||||
|
||||
|
|
Loading…
Reference in New Issue