git: 11bf070b0f67 - main - misc/py-mmcv: fix build on aarch64

From: Yuri Victorovich <yuri_at_FreeBSD.org>
Date: Sat, 03 Oct 2026 05:55:06 UTC
The branch main has been updated by yuri:

URL: https://cgit.FreeBSD.org/ports/commit/?id=11bf070b0f67fc7ef6edf7b9d2ff39e075ed0242

commit 11bf070b0f67fc7ef6edf7b9d2ff39e075ed0242
Author:     Yuri Victorovich <yuri@FreeBSD.org>
AuthorDate: 2026-10-03 05:54:33 +0000
Commit:     Yuri Victorovich <yuri@FreeBSD.org>
CommitDate: 2026-10-03 05:55:04 +0000

    misc/py-mmcv: fix build on aarch64
---
 misc/py-mmcv/Makefile | 8 +++++++-
 1 file changed, 7 insertions(+), 1 deletion(-)

diff --git a/misc/py-mmcv/Makefile b/misc/py-mmcv/Makefile
index 4f4761f4160e..9175dd30a79c 100644
--- a/misc/py-mmcv/Makefile
+++ b/misc/py-mmcv/Makefile
@@ -29,7 +29,13 @@ RUN_DEPENDS=	${PYTHON_PKGNAMEPREFIX}addict>0:devel/py-addict@${PY_FLAVOR} \
 USES=		compiler:c++17-lang localbase python
 USE_PYTHON=	distutils cython autoplist # pytest: many test dependencies are missing
 
+.include <bsd.port.pre.mk>
+
+.if ${ARCH} == "aarch64"
+MAKE_ENV=	LD_STATIC_TLS_EXTRA=4096 # see pkg-message in misc/py-pytorch
+.endif
+
 post-install:
 	@${STRIP_CMD} ${STAGEDIR}${PYTHON_SITELIBDIR}/mmcv/_ext${PYTHON_TAG}.so
 
-.include <bsd.port.mk>
+.include <bsd.port.post.mk>