Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 16 May 2024 22:19:53 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: cf87c36466fa - main - security/botan2: fix build on powerpc64
Message-ID:  <202405162219.44GMJrYq044106@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=cf87c36466fa256148c17d28a66825746cd1f69f

commit cf87c36466fa256148c17d28a66825746cd1f69f
Author:     Piotr Kubaj <pkubaj@FreeBSD.org>
AuthorDate: 2024-05-16 14:03:51 +0000
Commit:     Piotr Kubaj <pkubaj@FreeBSD.org>
CommitDate: 2024-05-16 22:19:48 +0000

    security/botan2: fix build on powerpc64
    
    In file included from src/lib/block/aes/aes_power8/aes_power8.cpp:15:
    /usr/lib/clang/18/include/altivec.h:17365:10: error: '__builtin_altivec_crypto_vcipher' needs target feature power8-vector
     17365 |   return __builtin_altivec_crypto_vcipher(__a, __b);
           |          ^
---
 security/botan2/Makefile | 3 +++
 1 file changed, 3 insertions(+)

diff --git a/security/botan2/Makefile b/security/botan2/Makefile
index 231db7ec7a05..a291f1d1961a 100644
--- a/security/botan2/Makefile
+++ b/security/botan2/Makefile
@@ -78,6 +78,9 @@ SQLITE3_CONFIGURE_WITH=	sqlite3
 CONFIGURE_ARGS+=	--cc-abi="-march=armv8-a+crypto"
 .elif ${ARCH} == powerpc64
 CONFIGURE_ARGS+=	--cpu="ppc64"
+.if !defined(MACHINE_CPU) || (defined(MACHINE_CPU) && !${MACHINE_ABI:Mvsx2})
+CONFIGURE_ARGS+=	--disable-powercrypto
+.endif
 .elif ${ARCH} == powerpc64le
 CONFIGURE_ARGS+=	--cpu="ppc64le"
 .endif



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