diff --git a/Jamfile b/Jamfile index 48bc6d0ae..d7ba4befa 100755 --- a/Jamfile +++ b/Jamfile @@ -136,7 +136,7 @@ rule linking ( properties * ) } # clock_gettime on linux requires librt - if yes in $(properties) + if linux in $(properties) { result += librt ; } @@ -324,8 +324,6 @@ feature.compose address : -fsanitize=address -fsani # RTC (runtime check) is an msvc feature feature.compose rtc : /RTCc /RTCsu ; -feature need-librt : no yes : composite propagated link-incompatible ; - feature fiemap : off on : composite propagated ; feature.compose on : HAVE_LINUX_FIEMAP_H ; @@ -503,7 +501,7 @@ lib boost_random : : boost_random ; # openssl on linux/bsd/macos etc. lib gcrypt : : gcrypt shared /opt/local/lib ; lib z : : shared z /usr/lib ; -lib crypto : : crypto /usr/lib z ; +lib crypto : : crypto shared /usr/lib z ; lib ssl : : ssl shared crypto /opt/local/lib ; lib dl : : shared dl ; lib aio : : shared aio ; diff --git a/bindings/python/Jamfile b/bindings/python/Jamfile index f264a5300..743c94d8d 100755 --- a/bindings/python/Jamfile +++ b/bindings/python/Jamfile @@ -39,8 +39,19 @@ rule libtorrent_linking ( properties * ) } } + if static in $(properties) + { + ECHO "WARNING: you probably want to specify libtorrent-link=static rather than link=static" ; + } + if source in $(properties) { + + if static in $(properties) && linux + { + ECHO "WARNING: you cannot link statically against boost-python on linux, because it links against pthread statically in that case, which is not allowed" ; + } + # linux must link dynamically against boost python because it pulls # in libpthread, which must be linked dynamically since we're building a .so # (the static build of libpthread is not position independent) @@ -130,5 +141,6 @@ my-python-extension libtorrent false ; -install stage_module : libtorrent : . ; +install stage_module : libtorrent : LIB on . ; + diff --git a/test/test_ssl.cpp b/test/test_ssl.cpp index c368c5e19..053e526a3 100644 --- a/test/test_ssl.cpp +++ b/test/test_ssl.cpp @@ -88,14 +88,14 @@ int ssl_peer_disconnects = 0; bool on_alert(alert const* a) { - if (peer_disconnected_alert* e = alert_cast(a)) + if (peer_disconnected_alert const* e = alert_cast(a)) { ++peer_disconnects; if (e->error.category() == boost::asio::error::get_ssl_category()) ++ssl_peer_disconnects; } - if (peer_error_alert* e = alert_cast(a)) + if (peer_error_alert const* e = alert_cast(a)) { ++peer_disconnects; ++peer_errors;