diff --git a/bindings/python/Jamfile b/bindings/python/Jamfile index ed56dc706..f264a5300 100755 --- a/bindings/python/Jamfile +++ b/bindings/python/Jamfile @@ -20,7 +20,8 @@ rule libtorrent_linking ( properties * ) { local result ; - if linux && gcc in $(properties) + if ! windows in $(properties) + && gcc in $(properties) { result += on ; } @@ -40,9 +41,9 @@ rule libtorrent_linking ( properties * ) if source in $(properties) { - # 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) + # 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) if shared in $(properties) || linux in $(properties) { result += /boost/python//boost_python/shared ; diff --git a/src/asio_ssl.cpp b/src/asio_ssl.cpp index e4a953ef7..f762048e3 100644 --- a/src/asio_ssl.cpp +++ b/src/asio_ssl.cpp @@ -2,6 +2,20 @@ #include #include +#ifndef BOOST_ASIO_SOURCE +#define BOOST_ASIO_SOURCE +#endif + +#include "libtorrent/config.hpp" + +#define TORRENT_HAS_ASIO_DECL x ## BOOST_ASIO_DECL + +// only define BOOST_ASIO_DECL if it hasn't already been defined +// or if it has been defined to an empty string +#if TORRENT_HAS_ASIO_DECL == x +#define BOOST_ASIO_DECL BOOST_SYMBOL_EXPORT +#endif + #if BOOST_VERSION >= 104610 #include #endif