git: 39be1279f16c - main - cad/openvsp: fix build on powerpc64

From: Piotr Kubaj <pkubaj_at_FreeBSD.org>
Date: Sun, 07 Nov 2021 12:19:40 UTC
The branch main has been updated by pkubaj:

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

commit 39be1279f16c6787a126a751bc58a1f4b767eeb5
Author:     Piotr Kubaj <pkubaj@FreeBSD.org>
AuthorDate: 2021-11-07 12:14:55 +0000
Commit:     Piotr Kubaj <pkubaj@FreeBSD.org>
CommitDate: 2021-11-07 12:14:55 +0000

    cad/openvsp: fix build on powerpc64
    
    /wrkdirs/usr/ports/cad/openvsp/work/.build/Libraries-prefix/src/Libraries-build/EIGEN-prefix/src/EIGEN/Eigen/src/Core/arch/AltiVec/PacketMath.h:1340:32: error: use of undeclared identifier 'vec_sqrt'; did you mean 'vec_rsqrte'?
      BF16_TO_F32_UNARY_OP_WRAPPER(vec_sqrt, a);
---
 cad/openvsp/Makefile | 1 +
 1 file changed, 1 insertion(+)

diff --git a/cad/openvsp/Makefile b/cad/openvsp/Makefile
index 767c08faf32c..3d1ffb95c02f 100644
--- a/cad/openvsp/Makefile
+++ b/cad/openvsp/Makefile
@@ -35,6 +35,7 @@ USE_GNOME=	libxml2
 USE_XORG=	ice sm x11 xau xcb xdamage xdmcp xext xfixes xft \
 		xinerama xrender xxf86vm
 
+CXXFLAGS_powerpc64=	-mvsx
 CMAKE_ARGS=	-DVSP_USE_SYSTEM_CMINPACK:BOOLEAN=yes \
 		-DVSP_USE_SYSTEM_CPPTEST:BOOLEAN=yes \
 		-DVSP_USE_SYSTEM_CODEELI:BOOLEAN=no \