@@ -13,6 +13,7 @@ LIBGCRYPT_INSTALL_STAGING = YES
LIBGCRYPT_DEPENDENCIES = libgpg-error
LIBGCRYPT_CONFIG_SCRIPTS = libgcrypt-config
LIBGCRYPT_CPE_ID_VENDOR = gnupg
+HOST_LIBGCRYPT_DEPENDENCIES = host-libgpg-error
# Patching configure.ac and Makefile.am in 0001
LIBGCRYPT_AUTORECONF = YES
@@ -20,6 +21,8 @@ LIBGCRYPT_CONF_OPTS = \
--disable-tests \
$(if $(BR2_OPTIMIZE_0),--disable-ppc-crypto-support,) \
--with-gpg-error-prefix=$(STAGING_DIR)/usr
+HOST_LIBGCRYPT_CONF_OPTS = \
+ --with-gpg-error-prefix=$(HOST_DIR)
# disable asm for broken archs
ifeq ($(BR2_i386)$(BR2_m68k_cf),y)
@@ -32,3 +35,4 @@ LIBGCRYPT_CONF_ENV += CFLAGS="$(TARGET_CFLAGS) -marm"
endif
$(eval $(autotools-package))
+$(eval $(host-autotools-package))
This is needed to support a host build of gnupg2. It is not directly selectable. Signed-off-by: Ben Hutchings <ben.hutchings@mind.be> --- package/libgcrypt/libgcrypt.mk | 4 ++++ 1 file changed, 4 insertions(+)