python binding build fixes (BBv2)

This commit is contained in:
Arvid Norberg 2009-03-02 05:43:56 +00:00
parent c51471c563
commit a4fca76eff
2 changed files with 24 additions and 14 deletions

27
Jamfile
View File

@ -281,23 +281,32 @@ lib user32 : : <name>User32 ;
lib shell32 : : <name>shell32 ;
lib gdi32 : : <name>gdi32 ;
local library-search-path = <search>/opt/local/lib <search>/usr/lib <search>/usr/local/lib <search>/sw/lib <search>/usr/sfw/lib ;
local boost-library-search-path =
<search>/opt/local/lib
<search>/usr/lib
<search>/usr/local/lib
<search>/sw/lib
;
lib boost_filesystem : : <name>boost_filesystem $(library-search-path) ;
lib boost_thread : : <name>boost_thread $(library-search-path) ;
lib boost_system : : <name>boost_system $(library-search-path) ;
lib boost_filesystem : : <target-os>darwin <name>boost_filesystem-mt $(boost-library-search-path) ;
lib boost_thread : : <target-os>darwin <name>boost_thread-mt $(boost-library-search-path) ;
lib boost_system : : <target-os>darwin <name>boost_system-mt $(boost-library-search-path) ;
lib boost_filesystem : : <name>boost_filesystem ;
lib boost_thread : : <name>boost_thread ;
lib boost_system : : <name>boost_system ;
# openssl on linux/bsd/macos etc.
lib crypto : : <name>crypto $(library-search-path) ;
lib ssl : : <name>ssl $(library-search-path) ;
lib crypto : : <name>crypto ;
lib ssl : : <name>ssl ;
# time functions used on linux require librt
lib librt : : <name>rt ;
lib libsocket : : <use>libnsl <name>socket <link>shared $(library-search-path) ;
lib libnsl : : <name>nsl <link>shared $(library-search-path) ;
lib libsocket : : <use>libnsl <name>socket <link>shared <search>/usr/sfw/lib ;
lib libnsl : : <name>nsl <link>shared <search>/usr/sfw/lib ;
lib tcmalloc : : <name>tcmalloc $(library-search-path) ;
lib tcmalloc : : <name>tcmalloc ;
# libz
lib zlib-target : : <name>z ;

View File

@ -2,7 +2,8 @@ import python ;
use-project /torrent : ../.. ;
lib boost_python : : <name>boost_python-mt $(library-search-path) ;
lib boost_python : : <target-os>darwin <name>boost_python-mt $(boost-library-search-path) ;
lib boost_python : : <name>boost_python ;
rule libtorrent_linking ( properties * )
{
@ -13,10 +14,10 @@ rule libtorrent_linking ( properties * )
result += <fpic>on ;
}
if <toolset>gcc in $(properties) || <toolset>darwin in $(properties)
{
result += <visibility>hidden ;
}
# if <toolset>gcc in $(properties) || <toolset>darwin in $(properties)
# {
# result += <visibility>hidden ;
# }
# when building peer_plugin.cpp on msvc-7.1 it fails
# running out of internal heap space. Don't add it