Browse Source

Merge pull request #2084 from ClaymorePT/boost_7

Boost: Update 7
lilik-openwrt-22.03
Ted Hess 9 years ago
parent
commit
054d308b91
1 changed files with 19 additions and 14 deletions
  1. +19
    -14
      libs/boost/Makefile

+ 19
- 14
libs/boost/Makefile View File

@ -119,7 +119,7 @@ define Package/boost/config
bool "Compile Static Libraries" bool "Compile Static Libraries"
help help
Compile static version of all selected boost libraries. Compile static version of all selected boost libraries.
default n
default y
config boost-shared-libs config boost-shared-libs
bool "Compile Shared Libraries" bool "Compile Shared Libraries"
@ -138,23 +138,28 @@ define Package/boost/config
bool "Use shared version of C and C++ runtimes for shared libraries." bool "Use shared version of C and C++ runtimes for shared libraries."
help help
Determines if shared or static version of C and C++ runtimes should be used for shared libraries. Determines if shared or static version of C and C++ runtimes should be used for shared libraries.
default n
default y
select boost-shared-libs select boost-shared-libs
config boost-multi-threading
bool "Multithread Support"
config boost-use-name-tags
bool "Use tagged names."
help help
Compile Boost libraries n multithread mode.
default y
Add name tags the lib files, to diferentiate each library version:
"-mt" for multi-threading.
"-d" for debugging.
"-s" for runtime static link".
Might break compatibility with libraries that expect boost libs with default names.
default n
config boost-single-thread config boost-single-thread
depends on @boost-use-name-tags
bool "Single thread Support" bool "Single thread Support"
help help
Compile Boost libraries in single-thread mode. Compile Boost libraries in single-thread mode.
default n default n
config boost-with-debug config boost-with-debug
depends on @boost-use-name-tags
bool "Boost Debug Support" bool "Boost Debug Support"
help help
Compile Boost libraries with debug support. Compile Boost libraries with debug support.
@ -174,7 +179,7 @@ define Package/boost/config
select PACKAGE_boost-test select PACKAGE_boost-test
config boost-coroutine2 config boost-coroutine2
depends on @GCC_USE_VERSION_5
depends on @GCC_VERSION_5
bool "Boost couroutine2 support." bool "Boost couroutine2 support."
select PACKAGE_boost-coroutine select PACKAGE_boost-coroutine
default n default n
@ -238,19 +243,19 @@ $(eval $(call DefineBoostLibrary,date_time,,))
#$(eval $(call DefineBoostLibrary,exception,,)) #$(eval $(call DefineBoostLibrary,exception,,))
$(eval $(call DefineBoostLibrary,filesystem,system,)) $(eval $(call DefineBoostLibrary,filesystem,system,))
$(eval $(call DefineBoostLibrary,graph,regex,)) $(eval $(call DefineBoostLibrary,graph,regex,))
$(eval $(call DefineBoostLibrary,iostreams,,+zlib))
$(eval $(call DefineBoostLibrary,iostreams,,+PACKAGE_boost-iostreams:zlib))
$(eval $(call DefineBoostLibrary,locale,system,$(ICONV_DEPENDS) +@BUILD_NLS)) $(eval $(call DefineBoostLibrary,locale,system,$(ICONV_DEPENDS) +@BUILD_NLS))
$(eval $(call DefineBoostLibrary,log,system chrono date_time thread filesystem regex,)) $(eval $(call DefineBoostLibrary,log,system chrono date_time thread filesystem regex,))
$(eval $(call DefineBoostLibrary,math,,)) $(eval $(call DefineBoostLibrary,math,,))
#$(eval $(call DefineBoostLibrary,mpi,,)) # OpenMPI does no exist in OpenWRT at this time. #$(eval $(call DefineBoostLibrary,mpi,,)) # OpenMPI does no exist in OpenWRT at this time.
$(eval $(call DefineBoostLibrary,program_options,,)) $(eval $(call DefineBoostLibrary,program_options,,))
$(eval $(call DefineBoostLibrary,python,,+CONFIG_boost_python:python))
$(eval $(call DefineBoostLibrary,python3,,+CONFIG_boost_python3:python3))
$(eval $(call DefineBoostLibrary,python,,+PACKAGE_boost-python:python))
$(eval $(call DefineBoostLibrary,python3,,+PACKAGE_boost-python3:python3))
$(eval $(call DefineBoostLibrary,random,system,)) $(eval $(call DefineBoostLibrary,random,system,))
$(eval $(call DefineBoostLibrary,regex,,)) $(eval $(call DefineBoostLibrary,regex,,))
$(eval $(call DefineBoostLibrary,serialization,,)) $(eval $(call DefineBoostLibrary,serialization,,))
$(eval $(call DefineBoostLibrary,signals,,)) $(eval $(call DefineBoostLibrary,signals,,))
$(eval $(call DefineBoostLibrary,system,,+@boost-multi-threading))
$(eval $(call DefineBoostLibrary,system,,))
$(eval $(call DefineBoostLibrary,thread,system chrono atomic,)) $(eval $(call DefineBoostLibrary,thread,system chrono atomic,))
$(eval $(call DefineBoostLibrary,timer,chrono)) $(eval $(call DefineBoostLibrary,timer,chrono))
$(eval $(call DefineBoostLibrary,wave,date_time thread filesystem,)) $(eval $(call DefineBoostLibrary,wave,date_time thread filesystem,))
@ -300,14 +305,14 @@ define Build/Compile
--ignore-site-config \ --ignore-site-config \
--toolset=gcc-$(ARCH) abi=$(BOOST_ABI) \ --toolset=gcc-$(ARCH) abi=$(BOOST_ABI) \
--disable-long-double \ --disable-long-double \
--layout=tagged \
$(if $(CONFIG_boost-use-name-tags),--layout=tagged,--layout=system) \
$(if $(CONFIG_boost-with-debug),--build-type=complete,--build-type=minimal) \ $(if $(CONFIG_boost-with-debug),--build-type=complete,--build-type=minimal) \
$(if $(CONFIG_boost-static-libs),link=static,) \ $(if $(CONFIG_boost-static-libs),link=static,) \
$(if $(CONFIG_boost-runtime-static),runtime-link=static,runtime-link=shared) \ $(if $(CONFIG_boost-runtime-static),runtime-link=static,runtime-link=shared) \
$(if $(CONFIG_boost-shared-libs),link=shared,) \ $(if $(CONFIG_boost-shared-libs),link=shared,) \
$(if $(CONFIG_boost-runtime-shared),runtime-link=shared,) \ $(if $(CONFIG_boost-runtime-shared),runtime-link=shared,) \
$(if $(CONFIG_boost-single-thread),threading=single,) \ $(if $(CONFIG_boost-single-thread),threading=single,) \
$(if $(CONFIG_boost-multi-threading),threading=multi,) \
threading=multi \
$(CONFIGURE_ARGS) \ $(CONFIGURE_ARGS) \
--without-mpi \ --without-mpi \
$(if $(CONFIG_boost-coroutine2),,--without-coroutine2) \ $(if $(CONFIG_boost-coroutine2),,--without-coroutine2) \


Loading…
Cancel
Save