diff --git a/Jamfile b/Jamfile index 9be994c0e..e3ed7864a 100755 --- a/Jamfile +++ b/Jamfile @@ -110,21 +110,10 @@ rule linking ( properties * ) { if static in $(properties) { - if darwin in $(properties) || gcc in $(properties) - { - result += /boost/thread//boost_thread/static/-fvisibility=hidden - /boost/filesystem//boost_filesystem/static/-fvisibility=hidden - /boost/system//boost_system/static -#/-fvisibility=hidden - ; - } - else - { - result += /boost/thread//boost_thread/static - /boost/filesystem//boost_filesystem/static - /boost/system//boost_system/static - ; - } + result += /boost/thread//boost_thread/static + /boost/filesystem//boost_filesystem/static + /boost/system//boost_system/static + ; } else { @@ -155,7 +144,7 @@ rule building ( properties * ) if gcc in $(properties) || darwin in $(properties) { - result += -fvisibility=hidden ; + result += hidden ; } if ( linux in $(properties) @@ -260,6 +249,12 @@ feature.compose on : _SCL_SECURE=1 _GLIBCXX_DEB feature test-coverage : off on : composite propagated ; +feature fpic : off on : composite propagated link-incompatible ; +feature.compose on : -fPIC ; + +feature visibility : defeault hidden : composite propagated link-incompatible ; +feature.compose hidden : -fvisibility=hidden ; + # required for openssl on windows lib ssleay32 : : ssleay32 ; lib libeay32 : : libeay32 ; diff --git a/bindings/python/Jamfile b/bindings/python/Jamfile index 5d1f3aa05..4053d3109 100755 --- a/bindings/python/Jamfile +++ b/bindings/python/Jamfile @@ -10,26 +10,12 @@ rule libtorrent_linking ( properties * ) if gcc in $(properties) { - result += /torrent//torrent/static/-fPIC - -fPIC ; - } - else - { - result += /torrent//torrent/static ; + result += on ; } if gcc in $(properties) || darwin in $(properties) { - result += -fvisibility=hidden ; - - if source in $(properties) && static in $(properties) - { - result += /boost/python//boost_python/static/-fvisibility=hidden ; - } - } - else if source in $(properties) && static in $(properties) - { - result += /boost/python//boost_python/static ; + result += hidden ; } # when building peer_plugin.cpp on msvc-7.1 it fails @@ -68,7 +54,9 @@ python-extension libtorrent src/ip_filter.cpp src/magnet_uri.cpp : src + /torrent//torrent/static system:boost_python + source,static:/boost/python//boost_python/static source,shared:/boost/python//boost_python/shared @libtorrent_linking ;