581d397ec0
Fix the following build failure with libressl: p11_rsa.c:355:14: error: static declaration of 'RSA_meth_get_finish' follows non-static declaration 355 | static int (*RSA_meth_get_finish(const RSA_METHOD *meth)) (RSA *rsa) | ^~~~~~~~~~~~~~~~~~~ Fixes: - http://autobuild.buildroot.org/results/de3b1e97796f717eac47d291911e3e1517cb557b Signed-off-by: Fabrice Fontaine <fontaine.fabrice@gmail.com> Signed-off-by: Arnout Vandecappelle (Essensium/Mind) <arnout@mind.be>
33 lines
1.0 KiB
Makefile
33 lines
1.0 KiB
Makefile
################################################################################
|
|
#
|
|
# libp11
|
|
#
|
|
################################################################################
|
|
|
|
LIBP11_VERSION = 0.4.11
|
|
LIBP11_SITE = https://github.com/OpenSC/libp11/releases/download/libp11-$(LIBP11_VERSION)
|
|
LIBP11_DEPENDENCIES = openssl host-pkgconf
|
|
LIBP11_INSTALL_STAGING = YES
|
|
LIBP11_LICENSE = LGPL-2.1+
|
|
LIBP11_LICENSE_FILES = COPYING
|
|
|
|
ifeq ($(BR2_PACKAGE_LIBOPENSSL),y)
|
|
LIBP11_ENGINESDIR = enginesdir
|
|
else ifeq ($(BR2_PACKAGE_LIBRESSL),y)
|
|
LIBP11_ENGINESDIR = libdir
|
|
endif
|
|
|
|
# pkg-config returns a libcrypto enginesdir prefixed with the sysroot,
|
|
# so let's rip it out.
|
|
LIBP11_CONF_OPTS = \
|
|
--with-enginesdir=`$(PKG_CONFIG_HOST_BINARY) --variable $(LIBP11_ENGINESDIR) libcrypto | xargs readlink -f | sed 's%^$(STAGING_DIR)%%'`
|
|
|
|
ifeq ($(BR2_PACKAGE_P11_KIT),y)
|
|
LIBP11_CONF_OPTS += --with-pkcs11-module=/usr/lib/p11-kit-proxy.so
|
|
endif
|
|
|
|
HOST_LIBP11_DEPENDENCIES = host-pkgconf host-openssl
|
|
|
|
$(eval $(autotools-package))
|
|
$(eval $(host-autotools-package))
|