core/libgcrypt: fix

This commit is contained in:
Kevin Mihelich 2021-01-26 13:41:51 +00:00
parent 381a76d7af
commit 6378c2e42e

View file

@ -2,7 +2,6 @@
# ALARM: Kevin Mihelich <kevin@archlinuxarm.org>
# - disable NEON and ARMv8 crypto support on !AArch64
# - fix screwed up capability detection
pkgname=libgcrypt
pkgver=1.9.0
@ -41,19 +40,13 @@ prepare() {
build() {
cd "${pkgname}"-${pkgver}
[[ $CARCH != "aarch64" ]] && CONFIG="--disable-neon-support --disable-arm-crypto-support"
[[ $CARCH != "aarch64" ]] && CONFIG="--disable-neon-support --disable-arm-crypto-support --disable-asm"
./configure --prefix=/usr \
--disable-static \
--disable-padlock-support \
$CONFIG
# fix screwed up capability detection
if [[ $CARCH != "aarch64" ]]; then
sed -i '/HAVE_GCC_INLINE_ASM_AARCH32_CRYPTO 1/d' config.h
sed -i '/HAVE_GCC_INLINE_ASM_NEON 1/d' config.h
fi
make
}