A recent Xcode upgraded forced me to make the following change.
However as my comment suggests I think this whole OSX_SDK_MAP mess is
fundamentally the wrong approach:
--- Darwin.mk.~1.113.~ 2022-02-25 13:29:47.931821426 -0800
+++ Darwin.mk 2022-03-18 11:28:21.527119242 -0700
@@ -111,11 +111,21 @@
# Apple do not always keep the SDK version in step with the OS version. When
# that happens add a mapping below, but only within the same OS release major.
#
+# XXX this is the wrong approach -- the best default is to use the default!
+# (I.e. OSX_TOLERATE_SDK_SKEW should effectively always default to "yes" given
+# the existing logic.)
+#
+# Xcode does not easily allow installation of different version-specific SDKs,
+# and the default SDK can radically change with any Xcode upgrade, HOWEVER, the
+# default installed SDK will, or at least should, always work for the host
+# platform.
+#
OSX_SDK_MAP.11.2= 11.1
OSX_SDK_MAP.11.4= 11.3
OSX_SDK_MAP.11.5= 11.3
OSX_SDK_MAP.11.6= 11.3
OSX_SDK_MAP.12.2= 12.1
+OSX_SDK_MAP.12.1= 12.3
#
OSX_SDK_PATH!= /usr/bin/xcrun \
--sdk macosx${OSX_SDK_MAP.${OSX_VERSION}:U${OSX_VERSION}} \
--
Greg A. Woods <gwoods%acm.org@localhost>
Kelowna, BC +1 250 762-7675 RoboHack <woods%robohack.ca@localhost>
Planix, Inc. <woods%planix.com@localhost> Avoncote Farms <woods%avoncote.ca@localhost>