Fix #503 change the boost lib detection logic to first look for -mt

and if not available, fall back to regular boost lib (non-multithreaded)
This commit is contained in:
Andrew Resch 2008-09-25 03:30:08 +00:00
parent b47c4ad760
commit 5457cdcd80
1 changed files with 5 additions and 7 deletions

View File

@ -168,12 +168,10 @@ else:
]
# Modify the libs if necessary for systems with only -mt boost libs
if not os.path.exists(
os.path.join(sysconfig.PREFIX, "lib", "libboost_filesystem.so")):
# It's likely that this system doesn't have symlinks setup
# So add '-mt' to the libraries
for lib in _libraries:
if lib[:6] == "boost_":
for lib in _libraries:
if lib[:6] == "boost_":
# If there is a -mt version use that
if os.path.exists(os.path.join(sysconfig.get_config_var("LIBDIR"), "lib" + lib + "-mt.so")):
_libraries[_libraries.index(lib)] = lib + "-mt"
_sources = glob.glob("./libtorrent/src/*.cpp") + \