#
#############################################################
-LIBGCRYPT_VERSION = 1.5.0
+LIBGCRYPT_VERSION = 1.5.2
LIBGCRYPT_SOURCE = libgcrypt-$(LIBGCRYPT_VERSION).tar.bz2
LIBGCRYPT_LICENSE = LGPLv2.1+
LIBGCRYPT_LICENSE_FILES = COPYING.LIB
--disable-optimization \
--with-gpg-error-prefix=$(STAGING_DIR)/usr
+# Code doesn't build in thumb mode
+ifeq ($(BR2_arm),y)
+ LIBGCRYPT_CONF_ENV += CFLAGS="$(patsubst -mthumb,,$(TARGET_CFLAGS))"
+endif
+
# Tests use fork()
define LIBGCRYPT_DISABLE_TESTS
$(SED) 's/ tests//' $(@D)/Makefile.in