git: dfb85148f961 - main - devel/rkcommon: Fix build on i386

From: Yuri Victorovich <yuri_at_FreeBSD.org>
Date: Tue, 07 Dec 2021 08:50:57 UTC
The branch main has been updated by yuri:

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

commit dfb85148f96155ae4365dd6316d567dfb6cfedb4
Author:     Yuri Victorovich <yuri@FreeBSD.org>
AuthorDate: 2021-12-07 08:50:24 +0000
Commit:     Yuri Victorovich <yuri@FreeBSD.org>
CommitDate: 2021-12-07 08:50:55 +0000

    devel/rkcommon: Fix build on i386
    
    Reported by:    fallout
---
 devel/rkcommon/Makefile | 6 ++++++
 1 file changed, 6 insertions(+)

diff --git a/devel/rkcommon/Makefile b/devel/rkcommon/Makefile
index 194ecbfba1e0..b52f1832a6a7 100644
--- a/devel/rkcommon/Makefile
+++ b/devel/rkcommon/Makefile
@@ -20,4 +20,10 @@ GH_ACCOUNT=	ospray
 CMAKE_OFF=	BUILD_TESTING
 CMAKE_TESTING_ON=	BUILD_TESTING
 
+.include <bsd.port.options.mk>
+
+.if ${ARCH} == "i386"
+CXXFLAGS+=	-msse2 # workaround for error: '_mm_setcsr' needs target feature sse
+.endif
+
 .include <bsd.port.mk>