kumquat-buildroot/package/libuhttpd/libuhttpd.mk
Fabrice Fontaine 7d211f6701 package/wolfssl: all features needs dynamic library
Add dynamic library dependency to BR2_PACKAGE_WOLFSSL_ALL to fix the
following static build failure with ibrdtnd, a "wolfssl all"-enabled
libcurl and openssl:

/nvmedata/autobuild/instance-5/output-1/per-package/ibrdtnd/host/opt/ext-toolchain/bin/../lib/gcc/sh4aeb-buildroot-linux-musl/11.2.0/../../../../sh4aeb-buildroot-linux-musl/bin/ld: /nvmedata/autobuild/instance-5/output-1/per-package/ibrdtnd/host/bin/../sh4aeb-buildroot-linux-musl/sysroot/usr/lib/libssl.a(ssl_ciph.o): in function `SSL_COMP_get_compression_methods':
ssl_ciph.c:(.text+0x25ac): multiple definition of `SSL_COMP_get_compression_methods'; /nvmedata/autobuild/instance-5/output-1/per-package/ibrdtnd/host/sh4aeb-buildroot-linux-musl/sysroot/usr/lib/libwolfssl.a(libwolfssl_la-ssl.o):ssl.c:(.text+0x1ca60): first defined here

Fixes:
 - http://autobuild.buildroot.org/results/be1d327ed4c91a6280a88906a399dfe146f0b64e

Signed-off-by: Fabrice Fontaine <fontaine.fabrice@gmail.com>
Signed-off-by: Arnout Vandecappelle (Essensium/Mind) <arnout@mind.be>
2022-04-23 17:23:04 +02:00

49 lines
1.2 KiB
Makefile

################################################################################
#
# libuhttpd
#
################################################################################
LIBUHTTPD_VERSION = 3.14.1
LIBUHTTPD_SITE = https://github.com/zhaojh329/libuhttpd/releases/download/v$(LIBUHTTPD_VERSION)
LIBUHTTPD_LICENSE = MIT
LIBUHTTPD_LICENSE_FILES = LICENSE
LIBUHTTPD_INSTALL_STAGING = YES
LIBUHTTPD_DEPENDENCIES = libev
ifeq ($(BR2_PACKAGE_OPENSSL),y)
LIBUHTTPD_DEPENDENCIES += openssl
LIBUHTTPD_CONF_OPTS += \
-DSSL_SUPPORT=ON \
-DUSE_MBEDTLS=OFF \
-DUSE_OPENSSL=ON \
-DUSE_WOLFSSL=OFF
else ifeq ($(BR2_PACKAGE_WOLFSSL_ALL),y)
LIBUHTTPD_DEPENDENCIES += wolfssl
LIBUHTTPD_CONF_OPTS += \
-DSSL_SUPPORT=ON \
-DUSE_MBEDTLS=OFF \
-DUSE_OPENSSL=OFF \
-DUSE_WOLFSSL=ON
else ifeq ($(BR2_PACKAGE_MBEDTLS),y)
LIBUHTTPD_DEPENDENCIES += mbedtls
LIBUHTTPD_CONF_OPTS += \
-DSSL_SUPPORT=ON \
-DUSE_MBEDTLS=ON \
-DUSE_OPENSSL=OFF \
-DUSE_WOLFSSL=OFF
else
LIBUHTTPD_CONF_OPTS += \
-DSSL_SUPPORT=OFF
endif
# BUILD_STATIC builds *only* the static lib, which is not what we want for
# BR2_SHARED_STATIC.
ifeq ($(BR2_STATIC_LIBS),y)
LIBUHTTPD_CONF_OPTS += -DBUILD_STATIC=ON
else
LIBUHTTPD_CONF_OPTS += -DBUILD_STATIC=OFF
endif
$(eval $(cmake-package))