Skip to content

Commit 5b00929

Browse files
committed
Check uname -m in Makefile and compile 64-bit if expected.
1 parent 11e9e18 commit 5b00929

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

Makefile.macosx

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -68,8 +68,12 @@ endif
6868

6969
# Change as required in support of the available libraries
7070

71-
#CC := $(DARWIN_CC) -m64 $(SYS_LIBS) $(SYS_MIN)
71+
UNAME_M := $(shell uname -m)
72+
ifeq (${UNAME_M},x86_64)
73+
CC := $(DARWIN_CC) -m64 $(SYS_LIBS) $(SYS_MIN)
74+
else
7275
CC := $(DARWIN_CC) -m32 $(SYS_LIBS) $(SYS_MIN)
76+
endif
7377
CFLAGS := -Os -pthread -Igeotranz $(EXTRA_CFLAGS)
7478
# $(info $$CC is [${CC}])
7579

0 commit comments

Comments
 (0)