mirror of
https://gitlab.com/buildroot.org/buildroot.git
synced 2026-11-16 17:51:30 -10:00
Buildroot commit8dad17ea06bumped the package from 0.27.0 to 0.37.2. This bump includes upstream commit464867a9cewhich added WebSocket support to version 0.33.0 and causes a build error detected by the Gitlab pipelines for bootlin-sparc-uclibc: /builds/bkuhls/buildroot/br-test-pkg/bootlin-sparc-uclibc/host/opt/ext-toolchain/bin/../lib/gcc/sparc-buildroot-linux-uclibc/14.3.0/../../../../sparc-buildroot-linux-uclibc/bin/ld: /tmp/cciyXsAR.ltrans6.ltrans.o: in function `httplib::ws::WebSocket::close(httplib::ws::CloseStatus, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > const&)': <artificial>:(.text+0x6408): undefined reference to `__atomic_exchange_1' To fix the problem we add -latomic to LDFLAGS when needed. Signed-off-by: Bernd Kuhls <bernd@kuhls.net> Signed-off-by: Thomas Petazzoni <thomas.petazzoni@bootlin.com>
52 lines
1.3 KiB
Makefile
52 lines
1.3 KiB
Makefile
################################################################################
|
|
#
|
|
# cpp-httplib
|
|
#
|
|
################################################################################
|
|
|
|
CPP_HTTPLIB_VERSION = 0.48.0
|
|
CPP_HTTPLIB_SITE = $(call github,yhirose,cpp-httplib,v$(CPP_HTTPLIB_VERSION))
|
|
CPP_HTTPLIB_LICENSE = MIT
|
|
CPP_HTTPLIB_LICENSE_FILES = LICENSE
|
|
CPP_HTTPLIB_CPE_ID_VENDOR = yhirose
|
|
CPP_HTTPLIB_INSTALL_STAGING = YES
|
|
CPP_HTTPLIB_CONF_OPTS = \
|
|
-Dtest=false
|
|
|
|
CPP_HTTPLIB_LDFLAGS = $(TARGET_LDFLAGS)
|
|
|
|
ifeq ($(BR2_TOOLCHAIN_HAS_LIBATOMIC),y)
|
|
CPP_HTTPLIB_LDFLAGS += -latomic
|
|
endif
|
|
|
|
ifeq ($(BR2_PACKAGE_CPP_HTTPLIB_COMPILE),y)
|
|
CPP_HTTPLIB_CONF_OPTS += -Dcompile=true
|
|
CPP_HTTPLIB_DEPENDENCIES += host-python3
|
|
else
|
|
# Header only library
|
|
CPP_HTTPLIB_INSTALL_TARGET = NO
|
|
endif
|
|
|
|
ifeq ($(BR2_PACKAGE_OPENSSL),y)
|
|
CPP_HTTPLIB_CONF_OPTS += -Dopenssl=enabled
|
|
CPP_HTTPLIB_DEPENDENCIES += openssl
|
|
else
|
|
CPP_HTTPLIB_CONF_OPTS += -Dopenssl=disabled
|
|
endif
|
|
|
|
ifeq ($(BR2_PACKAGE_ZLIB),y)
|
|
CPP_HTTPLIB_CONF_OPTS += -Dzlib=enabled
|
|
CPP_HTTPLIB_DEPENDENCIES += zlib
|
|
else
|
|
CPP_HTTPLIB_CONF_OPTS += -Dzlib=disabled
|
|
endif
|
|
|
|
ifeq ($(BR2_PACKAGE_BROTLI),y)
|
|
CPP_HTTPLIB_CONF_OPTS += -Dbrotli=enabled
|
|
CPP_HTTPLIB_DEPENDENCIES += brotli
|
|
else
|
|
CPP_HTTPLIB_CONF_OPTS += -Dbrotli=disabled
|
|
endif
|
|
|
|
$(eval $(meson-package))
|