From bd4948064fd2239a49932f890c14cd75385097c4 Mon Sep 17 00:00:00 2001 From: Arvid Norberg Date: Tue, 19 Jul 2011 01:54:57 +0000 Subject: [PATCH] python binding build fix --- bindings/python/Jamfile | 20 +++++++++++++++++--- 1 file changed, 17 insertions(+), 3 deletions(-) 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 ;