diff --git a/.travis.yml b/.travis.yml index 35b0beab4..70f0211c0 100644 --- a/.travis.yml +++ b/.travis.yml @@ -63,9 +63,9 @@ script: - cd test - bjam --hash -j3 warnings-as-errors=on variant=$variant -l900 $toolset $target - cd ../examples - - bjam --hash -j3 warnings-as-errors=on variant=$variant $toolset + - bjam --hash -j3 warnings-as-errors=on variant=$variant $toolset link=shared - cd ../bindings/python - - bjam --hash -j3 warnings-as-errors=on variant=$variant $toolset stage_module + - bjam --hash -j3 warnings-as-errors=on variant=$variant $toolset stage_module libtorrent-link=shared - LD_LIBRARY_PATH=. DYLD_LIBRARY_PATH=. python test.py - if [ $sim = "1" ]; then cd ../../simulation; diff --git a/appveyor.yml b/appveyor.yml index fdea489a4..f9c221a2a 100644 --- a/appveyor.yml +++ b/appveyor.yml @@ -113,9 +113,9 @@ build_script: ) else ( b2.exe --hash -j2 address-model=32 win-tests %compiler% variant=%variant% link=shared linkflags=%linkflags% include=%include% & cd %ROOT_DIRECTORY%\examples - & b2.exe --hash -j2 %compiler% variant=%variant% linkflags=%linkflags32% include=%include% + & b2.exe --hash -j2 %compiler% variant=%variant% linkflags=%linkflags% include=%include% link=shared & cd %ROOT_DIRECTORY%\bindings\python - & b2.exe --hash -j2 %compiler% stage_module variant=%variant% linkflags=%linkflags32% include=%include% + & b2.exe --hash -j2 %compiler% stage_module variant=%variant% libtorrent-link=shared linkflags=%linkflags% include=%include% & python test.py ) - if defined sim ( diff --git a/bindings/python/Jamfile b/bindings/python/Jamfile index 8f389c8b7..e5a055cdf 100644 --- a/bindings/python/Jamfile +++ b/bindings/python/Jamfile @@ -9,7 +9,7 @@ use-project /torrent : ../.. ; BOOST_ROOT = [ modules.peek : BOOST_ROOT ] ; -feature visibility : default hidden : composite propagated link-incompatible ; +feature visibility : default hidden : composite ; feature.compose hidden : -fvisibility=hidden -fvisibility-inlines-hidden ; feature libtorrent-link : shared static : composite propagated ; @@ -93,11 +93,11 @@ rule libtorrent_linking ( properties * ) if shared in $(properties) { - result += /torrent//torrent/shared/shared ; + result += /torrent//torrent/shared ; } else { - result += /torrent//torrent/static/static ; + result += /torrent//torrent/static ; } return $(result) ; @@ -149,7 +149,7 @@ my-python-extension py_libtorrent src gcc:-Wno-deprecated-declarations darwin:-Wno-deprecated-declarations - darwin:-Wno-unused-command-line-argument + darwin:-Wno-unused-command-line-argument @libtorrent_linking : # usage-requirements @libtorrent_linking @@ -157,11 +157,11 @@ my-python-extension py_libtorrent ; install stage_module - : py_libtorrent - : . - on - LIB - ; + : py_libtorrent + : . + on + LIB + ; explicit stage_module ; diff --git a/test/Jamfile b/test/Jamfile index ddc896131..653317fd5 100644 --- a/test/Jamfile +++ b/test/Jamfile @@ -38,12 +38,12 @@ rule link_libtorrent ( properties * ) if shared in $(properties) { result += - /torrent//torrent/shared/on/shared/on ; + /torrent//torrent/shared/on/shared/on/on ; } else { result += - /torrent//torrent/static/on/static/on ; + /torrent//torrent/static/on/static/on/on ; } return $(result) ; } @@ -70,6 +70,7 @@ lib libtorrent_test windows:advapi32 @link_libtorrent darwin:-Wno-unused-command-line-argument + on : # default build shared @@ -77,6 +78,7 @@ lib libtorrent_test : # user-requirements shared:TORRENT_LINK_TEST_SHARED + on on . ; @@ -93,7 +95,6 @@ project : default-build multi full - on shared on ;