diff options
| author | Yuri Victorovich <yuri@FreeBSD.org> | 2026-10-03 05:54:33 +0000 |
|---|---|---|
| committer | Yuri Victorovich <yuri@FreeBSD.org> | 2026-10-03 05:56:45 +0000 |
| commit | e429c860383a6cb2eae65f21a58228e8b2921dff (patch) | |
| tree | 755df69efc11f46ffab1bf35afb98be7280b7e93 | |
| parent | 6113fbc4fc690f5869d042616385567d374eef04 (diff) | |
misc/py-mmcv: fix build on aarch64
(cherry picked from commit 11bf070b0f67fc7ef6edf7b9d2ff39e075ed0242)
| -rw-r--r-- | misc/py-mmcv/Makefile | 8 |
1 files changed, 7 insertions, 1 deletions
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> |
