kumquat-buildroot/package/libgcrypt/libgcrypt.mk
Bernd Kuhls cef05ae156 package/libgcrypt: disable asm on i386
Fixes:
http://autobuild.buildroot.net/results/933/93330f9e1867b1ddc1de19b57d70d223b6f23994/

Code failing to build on i386 was added in libgcrypt-10.0.0
9d909cb67e
which was added in buildroot with commit
d96b9ed073

Signed-off-by: Bernd Kuhls <bernd.kuhls@t-online.de>
Signed-off-by: Yann E. MORIN <yann.morin.1998@free.fr>
2023-07-03 22:04:11 +02:00

35 lines
1.0 KiB
Makefile

################################################################################
#
# libgcrypt
#
################################################################################
LIBGCRYPT_VERSION = 1.10.2
LIBGCRYPT_SOURCE = libgcrypt-$(LIBGCRYPT_VERSION).tar.bz2
LIBGCRYPT_LICENSE = LGPL-2.1+
LIBGCRYPT_LICENSE_FILES = COPYING.LIB
LIBGCRYPT_SITE = https://gnupg.org/ftp/gcrypt/libgcrypt
LIBGCRYPT_INSTALL_STAGING = YES
LIBGCRYPT_DEPENDENCIES = libgpg-error
LIBGCRYPT_CONFIG_SCRIPTS = libgcrypt-config
LIBGCRYPT_CPE_ID_VENDOR = gnupg
# Patching configure.ac and Makefile.am in 0001
LIBGCRYPT_AUTORECONF = YES
LIBGCRYPT_CONF_OPTS = \
--disable-tests \
$(if $(BR2_OPTIMIZE_0),--disable-ppc-crypto-support,) \
--with-gpg-error-prefix=$(STAGING_DIR)/usr
# disable asm for broken archs
ifeq ($(BR2_i386)$(BR2_m68k_cf),y)
LIBGCRYPT_CONF_OPTS += --disable-asm
endif
# Code doesn't build in thumb mode
ifeq ($(BR2_ARM_INSTRUCTIONS_THUMB),y)
LIBGCRYPT_CONF_ENV += CFLAGS="$(TARGET_CFLAGS) -marm"
endif
$(eval $(autotools-package))