git: 41f2cf47f17b - 2023Q3 - misc/py-numcodecs: Attempt to fix build on i386

From: Yuri Victorovich <yuri_at_FreeBSD.org>
Date: Thu, 13 Jul 2023 06:59:03 UTC
The branch 2023Q3 has been updated by yuri:

URL: https://cgit.FreeBSD.org/ports/commit/?id=41f2cf47f17b0b63a0b05187522aced65026be7f

commit 41f2cf47f17b0b63a0b05187522aced65026be7f
Author:     Yuri Victorovich <yuri@FreeBSD.org>
AuthorDate: 2023-07-13 06:57:49 +0000
Commit:     Yuri Victorovich <yuri@FreeBSD.org>
CommitDate: 2023-07-13 06:58:58 +0000

    misc/py-numcodecs: Attempt to fix build on i386
    
    sse2 isn't enabled by default on i386 so add the corresponding flag.
    
    Reported by:    fallout
    
    (cherry picked from commit 8b9048e625df095caf4410094c1650c356952fce)
---
 misc/py-numcodecs/Makefile | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/misc/py-numcodecs/Makefile b/misc/py-numcodecs/Makefile
index 3c2fe1f28506..b558b1cb3981 100644
--- a/misc/py-numcodecs/Makefile
+++ b/misc/py-numcodecs/Makefile
@@ -21,6 +21,8 @@ RUN_DEPENDS+=	${PYTHON_PKGNAMEPREFIX}msgpack>0:devel/py-msgpack@${PY_FLAVOR} \
 USES=		python
 USE_PYTHON=	distutils cython autoplist pytest # tests fail to find the library in the staged directory for some reason
 
+CXXFLAGS_i386=	-msse2 # otherwise it fails to compile: #error SSE2 is not supported by the target architecture/platform and/or this compiler.
+
 TEST_ENV=	${MAKE_ENV} PYTHONPATH=${STAGEDIR}${PYTHONPREFIX_SITELIBDIR}
 TEST_WRKSRC=	${WRKSRC}/numcodecs/tests