diff --git a/bindings/python/Jamfile b/bindings/python/Jamfile index 00b873239..b24254c49 100755 --- a/bindings/python/Jamfile +++ b/bindings/python/Jamfile @@ -30,6 +30,23 @@ rule libtorrent_linking ( properties * ) { result += src/peer_plugin.cpp ; } + + if source in $(properties) + { + if static in $(properties) || static in $(properties) + { + result += /boost/python//boost_python/static ; + } + else + { + result += /boost/python//boost_python/shared ; + } + } + else + { + result += boost_python ; + } + return $(result) ; } @@ -57,9 +74,6 @@ python-extension libtorrent src/error_code.cpp : src /torrent//torrent/static - system:boost_python - source,static:/boost/python//boost_python/static - source,shared:/boost/python//boost_python/shared @libtorrent_linking ;