diff --git a/Jamfile b/Jamfile index 34146b25c..45a407dbe 100755 --- a/Jamfile +++ b/Jamfile @@ -108,13 +108,26 @@ rule linking ( properties * ) if source in $(properties) { - result += /boost/thread//boost_thread - /boost/filesystem//boost_filesystem - /boost/iostreams//boost_iostreams - /boost/system//boost_system - $(BOOST_ROOT) - BOOST_ALL_NO_LIB - ; + if static in $(properties) + { + result += /boost/thread//boost_thread/static + /boost/filesystem//boost_filesystem/static + /boost/iostreams//boost_iostreams/static + /boost/system//boost_system/static + $(BOOST_ROOT) + BOOST_ALL_NO_LIB + ; + } + else + { + result += /boost/thread//boost_thread/shared + /boost/filesystem//boost_filesystem/shared + /boost/iostreams//boost_iostreams/shared + /boost/system//boost_system/shared + $(BOOST_ROOT) + BOOST_ALL_NO_LIB + ; + } } if system in $(properties) @@ -228,6 +241,7 @@ feature upnp-logging : off on : composite propagated link-incompatible ; feature.compose on : TORRENT_UPNP_LOGGING ; feature boost : system source : link-incompatible propagated ; +feature boost-link : static shared : composite ; feature debug-iterators : off on : composite propagated link-incompatible ; feature.compose on : _SCL_SECURE=1 _GLIBCXX_DEBUG ; diff --git a/bindings/python/Jamfile b/bindings/python/Jamfile index ec21998bb..068a0bee0 100755 --- a/bindings/python/Jamfile +++ b/bindings/python/Jamfile @@ -27,7 +27,8 @@ python-extension libtorrent src/ip_filter.cpp : src system:boost_python - source:/boost/python//boost_python - /torrent//torrent + source,static:/boost/python//boost_python/static + source,shared:/boost/python//boost_python/shared + /torrent//torrent/static ; diff --git a/docs/building.rst b/docs/building.rst index 0f47f4b88..01e21d3c4 100644 --- a/docs/building.rst +++ b/docs/building.rst @@ -226,6 +226,11 @@ Build features: | | ``BOOST_ROOT`` must be defined to point to the | | | boost directory. | +------------------------+----------------------------------------------------+ +| ``boost-link`` | * ``static`` - links statically against the boost | +| | libraries. | +| | * ``shared`` - links dynamically against the boost | +| | libraries. | ++------------------------+----------------------------------------------------+ | ``logging`` | * ``none`` - no logging. | | | * ``default`` - basic session logging. | | | * ``verbose`` - verbose peer wire logging. |