diff --git a/setup.py b/setup.py
a
|
b
|
|
146 | 146 | |
147 | 147 | # Modify the libs if necessary for systems with only -mt boost libs |
148 | 148 | if not os.path.exists( |
149 | | os.path.join(sysconfig.PREFIX, "lib", "libboost_filesystem.so")): |
| 149 | os.path.join(sysconfig.get_config_var("LIBDIR"), "libboost_filesystem.so")): |
150 | 150 | # It's likely that this system doesn't have symlinks setup |
151 | 151 | # So add '-mt' to the libraries |
152 | 152 | for lib in _libraries: |
153 | | if lib[:6] == "boost_": |
| 153 | if lib[:6] == "boost_" and lib[-3:] != "-mt": |
154 | 154 | _libraries[_libraries.index(lib)] = lib + "-mt" |
155 | 155 | |
156 | 156 | _sources = glob.glob("./libtorrent/src/*.cpp") + \ |