Skip to content

Commit 6e79513

Browse files
committed
fixed issue 43
1 parent 05ee807 commit 6e79513

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

Makefile

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -61,6 +61,12 @@ endif
6161
ifneq ($(cputype), x86_64)
6262
CONFIG_FLAGS += -DNO_X86=$(cputype)
6363
endif
64+
ifeq ($(systype), Darwin)
65+
sysroot = $(shell $(cc) -print-sysroot || echo not-set)
66+
ifneq ($(sysroot), not-set)
67+
CONFIG_FLAGS += -DCMAKE_OSX_SYSROOT=$(sysroot)
68+
endif
69+
endif
6470
ifneq ($(shared), not-set)
6571
CONFIG_FLAGS += -DSHARED=1
6672
endif

0 commit comments

Comments
 (0)