summaryrefslogtreecommitdiff
path: root/mk/platform/Darwin.mk
diff options
context:
space:
mode:
authorjperkin <jperkin>2013-11-01 12:22:32 +0000
committerjperkin <jperkin>2013-11-01 12:22:32 +0000
commita1ff014fef6f520550a71f20475ff6eed51206ba (patch)
tree798fe26a6e9bdebe544ca742c9d8d7ff32a07673 /mk/platform/Darwin.mk
parentdce9882940e86b933142ea664973d46693390578 (diff)
downloadpkgsrc-a1ff014fef6f520550a71f20475ff6eed51206ba.tar.gz
OSX Mavericks and Xcode 5 no longer ship system headers in /usr/include, they
are instead moved to SDK-specific locations. This breaks many builtin checks which assume headers are in a fixed place. Rather than trying to dig around finding where Xcode.app might be installed, just override IS_BUILTIN for libraries that we know exist.
Diffstat (limited to 'mk/platform/Darwin.mk')
-rw-r--r--mk/platform/Darwin.mk14
1 files changed, 13 insertions, 1 deletions
diff --git a/mk/platform/Darwin.mk b/mk/platform/Darwin.mk
index a76dd67fc07..59575609bf8 100644
--- a/mk/platform/Darwin.mk
+++ b/mk/platform/Darwin.mk
@@ -1,4 +1,4 @@
-# $NetBSD: Darwin.mk,v 1.56 2013/11/01 11:58:48 jperkin Exp $
+# $NetBSD: Darwin.mk,v 1.57 2013/11/01 12:22:32 jperkin Exp $
#
# Variable definitions for the Darwin operating system.
@@ -101,6 +101,18 @@ KRB5_DEFAULT?= mit-krb5
.if !empty(OS_VERSION:M[56].*)
USE_BUILTIN.dl= no # Darwin-[56].* uses devel/dlcompat
.endif
+#
+# OSX Mavericks and Xcode 5 no longer ship /usr/include headers, moving them
+# instead to SDK-specific locations. This breaks various builtin header
+# checks, so we simply override builtins here that we know exist.
+#
+.if ${OS_VERSION:R} >= 13
+IS_BUILTIN.db1= yes
+IS_BUILTIN.dl= yes
+IS_BUILTIN.pthread= yes
+IS_BUILTIN.termcap= yes
+IS_BUILTIN.terminfo= yes
+.endif
# Builtin defaults which make sense for this platform.
_OPSYS_PREFER.linux-pam?= native