Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 25 Mar 2022 14:38:39 GMT
From:      Piotr Kubaj <pkubaj@FreeBSD.org>
To:        ports-committers@FreeBSD.org, dev-commits-ports-all@FreeBSD.org, dev-commits-ports-main@FreeBSD.org
Subject:   git: 799e562284fd - main - devel/rkcommon: fix build on non-ARM non-x86
Message-ID:  <202203251438.22PEcdxQ099983@gitrepo.freebsd.org>

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

URL: https://cgit.FreeBSD.org/ports/commit/?id=799e562284fd4df20287cf96cc2920b72d43aad6

commit 799e562284fd4df20287cf96cc2920b72d43aad6
Author:     Piotr Kubaj <pkubaj@FreeBSD.org>
AuthorDate: 2022-03-25 14:28:58 +0000
Commit:     Piotr Kubaj <pkubaj@FreeBSD.org>
CommitDate: 2022-03-25 14:28:58 +0000

    devel/rkcommon: fix build on non-ARM non-x86
    
    Disable SIMD, since it's not available on POWER or RISC-V.
---
 devel/rkcommon/Makefile | 6 ++++++
 1 file changed, 6 insertions(+)

diff --git a/devel/rkcommon/Makefile b/devel/rkcommon/Makefile
index 2752a033e403..eb1f0d1f728b 100644
--- a/devel/rkcommon/Makefile
+++ b/devel/rkcommon/Makefile
@@ -23,4 +23,10 @@ CMAKE_TESTING_ON=	BUILD_TESTING
 
 PLIST_SUB=	PORTVERSION=${PORTVERSION}
 
+.include <bsd.port.options.mk>
+
+.if ${ARCH} != aarch64 && ${ARCH} != amd64 && !${ARCH:Marmv?} && ${ARCH} != i386
+CMAKE_ARGS+=	-DRKCOMMON_NO_SIMD:BOOL=ON
+.endif
+
 .include <bsd.port.mk>



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