security/botan3: fix build on powerpc64

1. Actually fix detection of Crypto extensions.
2. --disable-powercrypto no longer works:
configure.py: error: no such option: --disable-powercrypto

Explicitly disable modules using VSX and Crypto.
This commit is contained in:
Piotr Kubaj 2025-08-26 10:19:15 +02:00
parent 093403c8e7
commit 4a3f2a2ba6
1 changed files with 2 additions and 2 deletions

View File

@ -81,8 +81,8 @@ CHOSEN_COMPILER_TYPE= clang
CONFIGURE_ARGS+= --cc-abi="-march=armv8-a+crypto"
.elif ${ARCH:Mpowerpc64*}
CONFIGURE_ARGS+= --cpu="ppc64"
.if !defined(MACHINE_CPU) || (defined(MACHINE_CPU) && !${MACHINE_ABI:Mvsx2})
CONFIGURE_ARGS+= --disable-powercrypto
.if !defined(MACHINE_CPU) || (defined(MACHINE_CPU) && !${MACHINE_CPU:Mvsx2})
CONFIGURE_ARGS+= --disable-modules=aes_power8,ghash_cpu
.endif
.endif