@@ -36,27 +36,6 @@ all : $(APPS) direwolf.conf
36
36
37
37
SYS_LIBS :=
38
38
SYS_MIN :=
39
- #SDK := $(shell find /Developer -maxdepth 1 -type d -name "SDKs")
40
- #$(info $$SDK = ${SDK})
41
- #ifeq (${SDK},/Developer/SDKs)
42
- # SDK := $(shell find /Developer/SDKs -maxdepth 1 -type d -name "MacOSX10.8.sdk")
43
- # ifeq (${SDK},/Developer/SDKs/MacOSX10.8.sdk)
44
- # SYS_LIBS := -isystem /Developer/SDKs/MacOSX10.8.sdk
45
- # SYS_MIN := -mmacosx-version-min=10.8
46
- # else
47
- # SDK := $(shell find /Developer/SDKs -maxdepth 1 -type d -name "MacOSX10.9.sdk")
48
- # ifeq (${SDK},/Developer/SDKs/MacOSX10.9.sdk)
49
- # SYS_LIBS := -isystem /Developer/SDKs/MacOSX10.9.sdk
50
- # SYS_MIN := -mmacosx-version-min=10.9
51
- # else
52
- # SDK := $(shell find /Developer/SDKs -maxdepth 1 -type d -name "MacOSX10.10.sdk")
53
- # ifeq (${SDK},/Developer/SDKs/MacOSX10.10.sdk)
54
- # SYS_LIBS := -isystem /Developer/SDKs/MacOSX10.10.sdk
55
- # SYS_MIN := -mmacosx-version-min=10.10
56
- # endif
57
- # endif
58
- # endif
59
- #endif
60
39
61
40
SYS_LIBS := $(shell ./search_sdks.sh)
62
41
EXTRA_CFLAGS :=
70
49
71
50
# Change as required in support of the available libraries
72
51
73
- #CC := $(DARWIN_CC) -m64 $(SYS_LIBS) $(SYS_MIN)
52
+ UNAME_M := $(shell uname -m)
53
+ ifeq (${UNAME_M},x86_64)
54
+ CC := $(DARWIN_CC) -m64 $(SYS_LIBS) $(SYS_MIN)
55
+ else
74
56
CC := $(DARWIN_CC) -m32 $(SYS_LIBS) $(SYS_MIN)
57
+ endif
75
58
76
59
# _XOPEN_SOURCE=600 and _DEFAULT_SOURCE=1 are needed for glibc >= 2.24.
77
60
# Explanation here: https://github.com/wb2osz/direwolf/issues/62
0 commit comments