From 39e8fd772b8d1e647988f4d8c4f3dedba7426f2a Mon Sep 17 00:00:00 2001 From: Andrew Resch Date: Thu, 28 Aug 2008 01:53:17 +0000 Subject: [PATCH] Have setup use boost-mt libraries if boost libs are not found --- setup.py | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/setup.py b/setup.py index eb492a4cd..ce879643b 100644 --- a/setup.py +++ b/setup.py @@ -167,6 +167,15 @@ else: '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") + \ glob.glob("./libtorrent/src/*.c") + \ glob.glob("./libtorrent/src/kademlia/*.cpp") + \