Skip to content

Commit

Permalink
security/botan2: fix build on powerpc64
Browse files Browse the repository at this point in the history
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);
       |          ^
  • Loading branch information
pkubaj committed May 16, 2024
1 parent 804ac23 commit cf87c36
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions security/botan2/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit cf87c36

Please sign in to comment.