1567fbd72d
libuwsc needs BR2_PACKAGE_WOLFSSL_ALL (which enables openssl compat
layer) to avoid the following wolfssl build failure raised since the
addition of the package in commit
120c04775d
:
/home/br-user/work/instance-1/output-1/build/libuwsc-3.3.5/src/ssl.c:62:5: error: unknown type name 'SSL_CTX'
62 | SSL_CTX *ctx;
| ^~~~~~~
Note that we do not select _ALL when wolfssl is enabled, because wolfssl
is neither the only nor the preferred choice, so the condition would
have to be a bit more complex:
select BR2_PACKAGE_WOLFSSL_ALL if BR2_PACKAGE_WOLFSSL \
&& !BR2_STATIC_LIBS && !BR2_PACKAGE_OPENSSL
It is not overly complicated, but it is no longer trivial or obvious,
and would easily break if the ordering of preferences were to change in
the .mk fie in the future.
Fixes:
- http://autobuild.buildroot.org/results/6c2a6ed6fca1f92aab299f6ed9cd900b20e8d512
Signed-off-by: Fabrice Fontaine <fontaine.fabrice@gmail.com>
[yann.morin.1998@free.fr: explain why we don't select _ALL]
Signed-off-by: Yann E. MORIN <yann.morin.1998@free.fr>
54 lines
1.4 KiB
Makefile
54 lines
1.4 KiB
Makefile
################################################################################
|
|
#
|
|
# libuwsc
|
|
#
|
|
################################################################################
|
|
|
|
LIBUWSC_VERSION = 3.3.5
|
|
LIBUWSC_SITE = https://github.com/zhaojh329/libuwsc/releases/download/v$(LIBUWSC_VERSION)
|
|
LIBUWSC_LICENSE = MIT
|
|
LIBUWSC_LICENSE_FILES = LICENSE
|
|
LIBUWSC_INSTALL_STAGING = YES
|
|
LIBUWSC_DEPENDENCIES = libev
|
|
|
|
ifeq ($(BR2_PACKAGE_OPENSSL),y)
|
|
LIBUWSC_DEPENDENCIES += openssl
|
|
LIBUWSC_CONF_OPTS += \
|
|
-DUWSC_SSL_SUPPORT=ON \
|
|
-DUWSC_USE_MBEDTLS=OFF \
|
|
-DUWSC_USE_OPENSSL=ON \
|
|
-DUWSC_USE_WOLFSSL=OFF
|
|
else ifeq ($(BR2_PACKAGE_WOLFSSL_ALL),y)
|
|
LIBUWSC_DEPENDENCIES += wolfssl
|
|
LIBUWSC_CONF_OPTS += \
|
|
-DUWSC_SSL_SUPPORT=ON \
|
|
-DUWSC_USE_MBEDTLS=OFF \
|
|
-DUWSC_USE_OPENSSL=OFF \
|
|
-DUWSC_USE_WOLFSSL=ON
|
|
else ifeq ($(BR2_PACKAGE_MBEDTLS),y)
|
|
LIBUWSC_DEPENDENCIES += mbedtls
|
|
LIBUWSC_CONF_OPTS += \
|
|
-DUWSC_SSL_SUPPORT=ON \
|
|
-DUWSC_USE_MBEDTLS=ON \
|
|
-DUWSC_USE_OPENSSL=OFF \
|
|
-DUWSC_USE_WOLFSSL=OFF
|
|
else
|
|
LIBUWSC_CONF_OPTS += -DUWSC_SSL_SUPPORT=OFF
|
|
endif
|
|
|
|
ifeq ($(BR2_PACKAGE_LUA):$(BR2_STATIC_LIBS),y:)
|
|
LIBUWSC_DEPENDENCIES += lua
|
|
LIBUWSC_CONF_OPTS += -DUWSC_LUA_SUPPORT=ON
|
|
else
|
|
LIBUWSC_CONF_OPTS += -DUWSC_LUA_SUPPORT=OFF
|
|
endif
|
|
|
|
# BUILD_SHARED_LIBS is handled in pkg-cmake.mk as it is a generic cmake variable
|
|
ifeq ($(BR2_SHARED_STATIC_LIBS),y)
|
|
LIBUWSC_CONF_OPTS += -DBUILD_STATIC_LIBS=ON
|
|
else ifeq ($(BR2_SHARED_LIBS),y)
|
|
LIBUWSC_CONF_OPTS += -DBUILD_STATIC_LIBS=OFF
|
|
endif
|
|
|
|
$(eval $(cmake-package))
|