pkgsrc-Changes archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
CVS commit: pkgsrc/mk/platform
Module Name: pkgsrc
Committed By: schmonz
Date: Thu Nov 8 22:18:14 UTC 2018
Modified Files:
pkgsrc/mk/platform: Darwin.mk
Log Message:
Add OSX_TOLERATE_SDK_SKEW to control whether we try to find an
unversioned SDK if the versioned lookup fails. Off by default, as
before; must be explicitly enabled, as suggested by gdt@.
To generate a diff of this commit:
cvs rdiff -u -r1.89 -r1.90 pkgsrc/mk/platform/Darwin.mk
Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.
Modified files:
Index: pkgsrc/mk/platform/Darwin.mk
diff -u pkgsrc/mk/platform/Darwin.mk:1.89 pkgsrc/mk/platform/Darwin.mk:1.90
--- pkgsrc/mk/platform/Darwin.mk:1.89 Wed Nov 7 16:50:27 2018
+++ pkgsrc/mk/platform/Darwin.mk Thu Nov 8 22:18:14 2018
@@ -1,4 +1,4 @@
-# $NetBSD: Darwin.mk,v 1.89 2018/11/07 16:50:27 schmonz Exp $
+# $NetBSD: Darwin.mk,v 1.90 2018/11/08 22:18:14 schmonz Exp $
#
# Variable definitions for the Darwin operating system.
@@ -96,12 +96,13 @@ MAKEFLAGS+= OSX_VERSION=${OSX_VERSION:Q
#
# Use current system version SDK (avoid newer SDKs).
#
-.if exists(/usr/include/stdio.h)
+.if exists(/usr/include/stdioooo.h)
_OPSYS_INCLUDE_DIRS?= /usr/include
.elif exists(/usr/bin/xcrun)
. if !defined(OSX_SDK_PATH)
-OSX_SDK_PATH!= /usr/bin/xcrun --sdk macosx${OSX_VERSION} --show-sdk-path 2>/dev/null || echo /nonexistent
-. if ${OSX_SDK_PATH} == "/nonexistent"
+OSX_SDK_PATH!= /usr/bin/xcrun --sdk macosx${OSX_VERSION}3 --show-sdk-path 2>/dev/null || echo /nonexistent
+OSX_TOLERATE_SDK_SKEW?= no
+. if ${OSX_SDK_PATH} == "/nonexistent" && !empty(OSX_TOLERATE_SDK_SKEW:M[Yy][Ee][Ss])
OSX_SDK_PATH!= /usr/bin/xcrun --sdk macosx --show-sdk-path 2>/dev/null || echo /nonexistent
. endif
MAKEFLAGS+= OSX_SDK_PATH=${OSX_SDK_PATH:Q}
Home |
Main Index |
Thread Index |
Old Index