summaryrefslogtreecommitdiff
path: root/security
diff options
context:
space:
mode:
authortnn <tnn@pkgsrc.org>2022-03-16 13:32:37 +0000
committertnn <tnn@pkgsrc.org>2022-03-16 13:32:37 +0000
commit9304d9e20fbea2e751d3d9acd8f219cddd0933fe (patch)
treeb337c628a86d156de1b18d5129c03f1f34ef957b /security
parenta5b253630ab4cbf0295f99a85b773582168fb356 (diff)
downloadpkgsrc-9304d9e20fbea2e751d3d9acd8f219cddd0933fe.tar.gz
gnutls: fix build w/ latest xcode on Apple M1
Diffstat (limited to 'security')
-rw-r--r--security/gnutls/Makefile7
1 files changed, 6 insertions, 1 deletions
diff --git a/security/gnutls/Makefile b/security/gnutls/Makefile
index 36c626ae0fa..4441a251d89 100644
--- a/security/gnutls/Makefile
+++ b/security/gnutls/Makefile
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.228 2022/02/06 20:54:24 rillig Exp $
+# $NetBSD: Makefile,v 1.229 2022/03/16 13:32:37 tnn Exp $
DISTNAME= gnutls-3.7.3
PKGREVISION= 1
@@ -82,6 +82,11 @@ CONFIGURE_ARGS+= --disable-hardware-acceleration
. endif
.endif
+.if !empty(MACHINE_PLATFORM:MDarwin-*-aarch64)
+# don't assume GNU as(1) here
+BUILDLINK_TRANSFORM+= rm:-Wa,-march=all
+.endif
+
# Tests fail due to missing strndup for Solaris < 5.11, disable for now
.if ${OPSYS} == "SunOS" && ${OPSYS_VERSION} < 051100
CONFIGURE_ARGS.SunOS+= --disable-tests