8a87887095
The gnupg2 configure script checks whether <stdint.h> complies with C99. When doing this, it expects a number of WCHAR_* definitions to be present, which is not the case on non-wchar capable toolchains. The gnupg2 configure script then concludes that <stdint.h> is not C99-compliant and generates its own, which causes some build failures related to intmax_t being not defined. Since wchar is not actually used in gnupg2, this commit fixes this problem by forcing gnupg2 to think that our <stdint.h> is C99-compliant. Fixes: http://autobuild.buildroot.org/results/40f/40fff3bc304e1a83524f28be8f6afc2e217281ad/ And lots of similar issues. Thanks a lot for Romain Naour for the initial investigation and lots of discussion on IRC about this issue. Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com> Reviewed-by: Romain Naour <romain.naour@openwide.fr>
45 lines
1.3 KiB
Makefile
45 lines
1.3 KiB
Makefile
################################################################################
|
|
#
|
|
# gnupg2
|
|
#
|
|
################################################################################
|
|
|
|
GNUPG2_VERSION = 2.0.26
|
|
GNUPG2_SOURCE = gnupg-$(GNUPG2_VERSION).tar.bz2
|
|
GNUPG2_SITE = ftp://ftp.gnupg.org/gcrypt/gnupg
|
|
GNUPG2_LICENSE = GPLv3+
|
|
GNUPG2_LICENSE_FILES = COPYING
|
|
GNUPG2_DEPENDENCIES = zlib libgpg-error libgcrypt libassuan libksba libpthsem \
|
|
$(if $(BR2_PACKAGE_LIBICONV),libiconv)
|
|
GNUPG2_CONF_OPT = \
|
|
--disable-rpath --disable-regex --disable-doc \
|
|
--with-libgpg-error-prefix=$(STAGING_DIR)/usr \
|
|
--with-libgcrypt-prefix=$(STAGING_DIR)/usr \
|
|
--with-libassuan-prefix=$(STAGING_DIR)/usr \
|
|
--with-ksba-prefix=$(STAGING_DIR)/usr \
|
|
--with-pth-prefix=$(STAGING_DIR)/usr
|
|
GNUPG2_CONF_ENV = gl_cv_header_working_stdint_h=yes
|
|
|
|
ifneq ($(BR2_PACKAGE_GNUPG2_GPGV2),y)
|
|
define GNUPG2_REMOVE_GPGV2
|
|
rm -f $(TARGET_DIR)/usr/bin/gpgv2
|
|
endef
|
|
GNUPG2_POST_INSTALL_TARGET_HOOKS += GNUPG2_REMOVE_GPGV2
|
|
endif
|
|
|
|
ifeq ($(BR2_PACKAGE_BZIP2),y)
|
|
GNUPG2_CONF_OPT += --enable-bzip2 --with-bzip2=$(STAGING_DIR)
|
|
GNUPG2_DEPENDENCIES += bzip2
|
|
else
|
|
GNUPG2_CONF_OPT += --disable-bzip2
|
|
endif
|
|
|
|
ifeq ($(BR2_PACKAGE_READLINE),y)
|
|
GNUPG2_CONF_OPT += --with-readline=$(STAGING_DIR)
|
|
GNUPG2_DEPENDENCIES += readline
|
|
else
|
|
GNUPG2_CONF_OPT += --without-readline
|
|
endif
|
|
|
|
$(eval $(autotools-package))
|