diff --git a/core/libgcrypt/PKGBUILD b/core/libgcrypt/PKGBUILD index 37d34a8a9..9af44a8cf 100644 --- a/core/libgcrypt/PKGBUILD +++ b/core/libgcrypt/PKGBUILD @@ -3,6 +3,7 @@ # ALARM: Kevin Mihelich # - disable NEON and ARMv8 crypto support on !AArch64 +# - fix screwed up capability detection pkgname=libgcrypt pkgver=1.8.0 @@ -30,6 +31,13 @@ build() { --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 }