pkgsrc-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[pkgsrc/trunk]: pkgsrc/mk/platform mk/platform: add SDK mapping for macOS 11.6.



details:   https://anonhg.NetBSD.org/pkgsrc/rev/5ca175b019c1
branches:  trunk
changeset: 458366:5ca175b019c1
user:      schmonz <schmonz%pkgsrc.org@localhost>
date:      Tue Sep 14 10:33:26 2021 +0000

description:
mk/platform: add SDK mapping for macOS 11.6.

diffstat:

 mk/platform/Darwin.mk |  12 +++++++++++-
 1 files changed, 11 insertions(+), 1 deletions(-)

diffs (33 lines):

diff -r 7b8c596862b1 -r 5ca175b019c1 mk/platform/Darwin.mk
--- a/mk/platform/Darwin.mk     Tue Sep 14 10:12:16 2021 +0000
+++ b/mk/platform/Darwin.mk     Tue Sep 14 10:33:26 2021 +0000
@@ -1,4 +1,4 @@
-# $NetBSD: Darwin.mk,v 1.104 2021/07/26 11:58:24 jperkin Exp $
+# $NetBSD: Darwin.mk,v 1.105 2021/09/14 10:33:26 schmonz Exp $
 #
 # Variable definitions for the Darwin operating system.
 
@@ -111,6 +111,7 @@
 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_PATH!= /usr/bin/xcrun \
                    --sdk macosx${OSX_SDK_MAP.${OSX_VERSION}:U${OSX_VERSION}} \
@@ -208,6 +209,15 @@
 # to avoid a test required by the libtool script that takes forever.
 _OPSYS_MAX_CMDLEN_CMD= /usr/sbin/sysctl -n kern.argmax
 
+.if ${MACHINE_ARCH} == "aarch64"
+CWRAPPERS_APPEND.cc+=  -arch arm64
+CWRAPPERS_APPEND.cxx+= -arch arm64
+CWRAPPERS_APPEND.ld+=  -arch arm64
+_WRAP_EXTRA_ARGS.CC+=  -arch arm64
+_WRAP_EXTRA_ARGS.CXX+= -arch arm64
+_WRAP_EXTRA_ARGS.LD+=  -arch arm64
+.endif
+
 # Darwin 7.7.x has poll() in libc, but no poll.h. Try to help GNU
 # configure packages that break because of this by pretending that
 # there is no poll().



Home | Main Index | Thread Index | Old Index