summaryrefslogtreecommitdiff
path: root/mk
diff options
context:
space:
mode:
authorjperkin <jperkin>2013-11-01 12:22:32 +0000
committerjperkin <jperkin>2013-11-01 12:22:32 +0000
commit758c10c772b2b807186ddda2c37c6c46052c1e5a (patch)
tree798fe26a6e9bdebe544ca742c9d8d7ff32a07673 /mk
parent6aee48e324a3b9d125b6555f5059590511cd6292 (diff)
downloadpkgsrc-758c10c772b2b807186ddda2c37c6c46052c1e5a.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')
-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