Ever since upstream commit 01dd6da ("Rework the entire API"), first
introduced as part of release v3.0.0, openssl is a hard requirement for
building libjwt. As such, "-DWITH_OPENSSL=ON" also has become a no-op.
In Buildroot, this has been masked somewhat by the implicit select when
gnutls is disabled, but a failure can be reproduced using test-pkg with
a config like:
BR2_PACKAGE_GNUTLS=y
BR2_PACKAGE_LIBJWT=y
Fix this by requiring openssl. Furthermore, building against libressl
does not work because libjwt requires API surface that is not present
there[1], so we need to force libopenssl.
[1] https://autobuild.buildroot.org/results/463/4638a7d46c149ca0f46d3fe5f5f90dc5ee9d1e03
Signed-off-by: Florian Larysch <fl@n621.de>
[Peter: drop gnutls logic support for simplicity]
Signed-off-by: Peter Korsgaard <peter@korsgaard.com>
20 lines
626 B
Makefile
20 lines
626 B
Makefile
################################################################################
|
|
#
|
|
# libjwt
|
|
#
|
|
################################################################################
|
|
|
|
LIBJWT_VERSION = 3.2.0
|
|
LIBJWT_SITE = https://github.com/benmcollins/libjwt/releases/download/v$(LIBJWT_VERSION)
|
|
LIBJWT_SOURCE = libjwt-$(LIBJWT_VERSION).tar.xz
|
|
LIBJWT_DEPENDENCIES = host-pkgconf jansson openssl
|
|
LIBJWT_INSTALL_STAGING = YES
|
|
LIBJWT_LICENSE = MPL-2.0
|
|
LIBJWT_LICENSE_FILES = LICENSE
|
|
LIBJWT_CPE_ID_VENDOR = bencollins
|
|
LIBJWT_CPE_ID_PRODUCT = jwt_c_library
|
|
|
|
LIBJWT_CONF_OPTS += -DWITH_TESTS=OFF -DWITH_GNUTLS=OFF
|
|
|
|
$(eval $(cmake-package))
|