john: fix build on ppc64/ppc

This commit is contained in:
q66 2020-03-17 23:59:23 +01:00
parent f28052a1b3
commit 6c5d1c8776

View file

@ -15,6 +15,14 @@ homepage="https://www.openwall.com/john/"
distfiles="$homepage/k/$pkgname-${version}-jumbo-${_jumbover}.tar.xz"
checksum=f5d123f82983c53d8cc598e174394b074be7a77756f5fb5ed8515918c81e7f3b
# the build system checks the host cpu for features, so when building on
# a modern power9 system, it will attempt to shove in -mvsx and so on,
# which breaks builds for 970 and 32-bit
case "$XBPS_TARGET_MACHINE" in
ppc64le*) ;;
ppc*) configure_args+=" --disable-simd";;
esac
pre_configure() {
unset CPP AS LD
}