mirror of
https://git.deluge-torrent.org/deluge
synced 2025-04-20 11:35:49 +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
1cf863a022
commit
26d58d4057
2 changed files with 6 additions and 6 deletions
|
@ -2,6 +2,8 @@ Deluge 1.0.1 (In Development)
|
|||
Misc:
|
||||
* Fix #187 set a 5 second timer to save the config file after a config value
|
||||
has been changed.
|
||||
* 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)
|
||||
|
||||
Deluge 1.0.0 - "Sharks Are Bulletproof" (21 September 2008)
|
||||
Core:
|
||||
|
|
10
setup.py
10
setup.py
|
@ -145,12 +145,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") + \
|
||||
|
|
Loading…
Add table
Reference in a new issue