Ticket #503: modify-boost-detection.patch

File modify-boost-detection.patch, 709 bytes (added by pscott@foresightlinux.org, 16 years ago)

Patch to add libdir and check for libraries ending -mt

  • setup.py

    diff --git a/setup.py b/setup.py
    a b  
    146146
    147147    # Modify the libs if necessary for systems with only -mt boost libs   
    148148    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")):
    150150        # It's likely that this system doesn't have symlinks setup
    151151        # So add '-mt' to the libraries
    152152        for lib in _libraries:
    153             if lib[:6] == "boost_":
     153            if lib[:6] == "boost_" and lib[-3:] != "-mt":
    154154                _libraries[_libraries.index(lib)] = lib + "-mt"
    155155
    156156_sources = glob.glob("./libtorrent/src/*.cpp") + \