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:55:04 +0000 |
| commit | 11bf070b0f67fc7ef6edf7b9d2ff39e075ed0242 (patch) | |
| tree | 03446239068287f653801b5dd8a5b30a6db879ed | |
| parent | 18a69e1999482e22722697f5692954f70515d9dc (diff) | |
misc/py-mmcv: fix build on aarch64
| -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> |
