From 76323933252968f5deebd71daa5dcd646850bb5f Mon Sep 17 00:00:00 2001 From: Arvid Norberg Date: Sat, 27 Apr 2013 19:35:41 +0000 Subject: [PATCH] merged jamfile fixes from RC_0_16 --- Jamfile | 4 +++- bindings/python/Jamfile | 16 ++++++++++++---- 2 files changed, 15 insertions(+), 5 deletions(-) diff --git a/Jamfile b/Jamfile index 7fc8433e5..ca91cc6db 100755 --- a/Jamfile +++ b/Jamfile @@ -257,7 +257,8 @@ rule building ( properties * ) if ( darwin in $(properties) || gcc in $(properties) - || clang in $(propertoes) ) + || clang in $(propertoes) + || clang-darwin in $(propertoes) ) && shared in $(properties) # on GCC, enabling debugging in libstdc++ # breaks the ABI and its ability to appear @@ -596,6 +597,7 @@ local usage-requirements = gcc,debug:-ftrapv darwin,debug:-ftrapv clang:-Wno-invalid-offsetof + clang-darwin:-Wno-invalid-offsetof system:$(CXXFLAGS) system:$(LDFLAGS) # this works around a bug in asio in boost-1.39 diff --git a/bindings/python/Jamfile b/bindings/python/Jamfile index f030ec337..d2a426f6f 100755 --- a/bindings/python/Jamfile +++ b/bindings/python/Jamfile @@ -15,22 +15,30 @@ rule libtorrent_linking ( properties * ) } if gcc in $(properties) - || darwin in $(properties) - || clang in $(properties) + || darwin in $(properties) + || clang in $(properties) + || clang-darwin in $(properties) { result += -fvisibility=hidden ; } if source in $(properties) { - if static in $(properties) || static in $(properties) + if static in $(properties) { result += /boost/python//boost_python/static ; - result += /torrent//torrent/static ; } else { result += /boost/python//boost_python/shared ; + } + + if static in $(properties) + { + result += /torrent//torrent/static ; + } + else + { result += /torrent//torrent/shared/shared ; } }