summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--makefile4
1 files changed, 3 insertions, 1 deletions
diff --git a/makefile b/makefile
index a4c70ba..a0d3732 100644
--- a/makefile
+++ b/makefile
@@ -13,8 +13,10 @@ gxx := $(shell xcrun --sdk iphoneos -f g++)
cycc := $(gxx)
sdk := $(shell xcodebuild -sdk iphoneos -version Path)
+mac := $(shell xcodebuild -sdk macosx -version Path)
+
cycc += -isysroot $(sdk)
-cycc += -idirafter /usr/include
+cycc += -idirafter $(mac)/usr/include
cycc += -F$(sdk)/System/Library/PrivateFrameworks
cycc += -fmessage-length=0