From ddd4109c1cc87193f2fd04eda1adb0886226fa67 Mon Sep 17 00:00:00 2001 From: Rosen Penev Date: Sat, 5 Oct 2019 16:59:41 -0700 Subject: [PATCH 1/2] boost: Remove several host libraries The facebook people have been working on removing Boost dependencies from their projects. This is the current state. Signed-off-by: Rosen Penev --- libs/boost/Makefile | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/libs/boost/Makefile b/libs/boost/Makefile index 0d52e70cd..70c630856 100644 --- a/libs/boost/Makefile +++ b/libs/boost/Makefile @@ -13,7 +13,7 @@ include $(TOPDIR)/rules.mk PKG_NAME:=boost PKG_VERSION:=1.71.0 PKG_SOURCE_VERSION:=1_71_0 -PKG_RELEASE:=3 +PKG_RELEASE:=4 PKG_SOURCE:=$(PKG_NAME)_$(PKG_SOURCE_VERSION).tar.bz2 PKG_SOURCE_URL:=@SF/$(PKG_NAME)/$(PKG_NAME)/$(PKG_VERSION) https://dl.bintray.com/boostorg/release/$(PKG_VERSION)/source/ @@ -367,7 +367,7 @@ define Host/Compile ( cd $(HOST_BUILD_DIR) ; \ ./bootstrap.sh --prefix=$(STAGING_DIR_HOSTPKG) \ - --with-libraries=atomic,context,date_time,filesystem,headers,program_options,regex,system,thread ;\ + --with-libraries=context,filesystem,program_options,regex,system ;\ ./b2 --ignore-site-config install ) endef From 260d4a346afeffec5f7e4818d1179ea8db70420e Mon Sep 17 00:00:00 2001 From: Rosen Penev Date: Mon, 7 Oct 2019 11:06:17 -0700 Subject: [PATCH 2/2] boost: Remove thread dependency from context thread is only used when the C++ mutex header is missing. AFAIK, this is the case on Windows and not on Linux. Certainly not in OpenWrt. Signed-off-by: Rosen Penev --- libs/boost/Makefile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libs/boost/Makefile b/libs/boost/Makefile index 70c630856..90518c17a 100644 --- a/libs/boost/Makefile +++ b/libs/boost/Makefile @@ -332,7 +332,7 @@ endef $(eval $(call DefineBoostLibrary,atomic,system)) $(eval $(call DefineBoostLibrary,chrono,system)) $(eval $(call DefineBoostLibrary,container)) -$(eval $(call DefineBoostLibrary,context,chrono system thread,,!boost-context-exclude)) +$(eval $(call DefineBoostLibrary,context,chrono system,,!boost-context-exclude)) $(eval $(call DefineBoostLibrary,contract,system)) $(eval $(call DefineBoostLibrary,coroutine,system chrono context thread,,!boost-coroutine-exclude)) $(eval $(call DefineBoostLibrary,date_time))