mirror of
https://git.deluge-torrent.org/deluge
synced 2025-08-07 08:58:38 +00:00
Have setup use boost-mt libraries if boost libs are not found
This commit is contained in:
parent
2a5e346313
commit
39e8fd772b
1 changed files with 9 additions and 0 deletions
9
setup.py
9
setup.py
|
@ -167,6 +167,15 @@ else:
|
||||||
'z'
|
'z'
|
||||||
]
|
]
|
||||||
|
|
||||||
|
# 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_":
|
||||||
|
_libraries[_libraries.index(lib)] = lib + "-mt"
|
||||||
|
|
||||||
_sources = glob.glob("./libtorrent/src/*.cpp") + \
|
_sources = glob.glob("./libtorrent/src/*.cpp") + \
|
||||||
glob.glob("./libtorrent/src/*.c") + \
|
glob.glob("./libtorrent/src/*.c") + \
|
||||||
glob.glob("./libtorrent/src/kademlia/*.cpp") + \
|
glob.glob("./libtorrent/src/kademlia/*.cpp") + \
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue