mirror of
https://git.deluge-torrent.org/deluge
synced 2025-08-09 01:48:40 +00:00
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:
parent
b47c4ad760
commit
5457cdcd80
1 changed files with 5 additions and 7 deletions
12
setup.py
12
setup.py
|
@ -167,13 +167,11 @@ else:
|
||||||
'z'
|
'z'
|
||||||
]
|
]
|
||||||
|
|
||||||
# Modify the libs if necessary for systems with only -mt boost libs
|
# Modify the libs if necessary for systems with only -mt boost libs
|
||||||
if not os.path.exists(
|
for lib in _libraries:
|
||||||
os.path.join(sysconfig.PREFIX, "lib", "libboost_filesystem.so")):
|
if lib[:6] == "boost_":
|
||||||
# It's likely that this system doesn't have symlinks setup
|
# If there is a -mt version use that
|
||||||
# So add '-mt' to the libraries
|
if os.path.exists(os.path.join(sysconfig.get_config_var("LIBDIR"), "lib" + lib + "-mt.so")):
|
||||||
for lib in _libraries:
|
|
||||||
if lib[:6] == "boost_":
|
|
||||||
_libraries[_libraries.index(lib)] = lib + "-mt"
|
_libraries[_libraries.index(lib)] = lib + "-mt"
|
||||||
|
|
||||||
_sources = glob.glob("./libtorrent/src/*.cpp") + \
|
_sources = glob.glob("./libtorrent/src/*.cpp") + \
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue