Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 13 Jul 2023 06:58:41 GMT
From:      Yuri Victorovich <yuri@FreeBSD.org>
To:        ports-committers@FreeBSD.org, dev-commits-ports-all@FreeBSD.org, dev-commits-ports-main@FreeBSD.org
Subject:   git: 8b9048e625df - main - misc/py-numcodecs: Attempt to fix build on i386
Message-ID:  <202307130658.36D6wfm4068530@gitrepo.freebsd.org>

next in thread | raw e-mail | index | archive | help
The branch main has been updated by yuri:

URL: https://cgit.FreeBSD.org/ports/commit/?id=8b9048e625df095caf4410094c1650c356952fce

commit 8b9048e625df095caf4410094c1650c356952fce
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:39 +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
---
 misc/py-numcodecs/Makefile | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/misc/py-numcodecs/Makefile b/misc/py-numcodecs/Makefile
index 7ba24dcfcaca..7106b8fbcb0c 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
 



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?202307130658.36D6wfm4068530>