Changeset 3766

Show
Ignore:
Timestamp:
08/28/08 01:53:17 (4 months ago)
Author:
andar
Message:

Have setup use boost-mt libraries if boost libs are not found

Files:
2 modified

Legend:

Unmodified
Added
Removed
  • branches/1.0.0_RC/setup.py

    r3763 r3766  
    167167        'z' 
    168168        ] 
     169 
     170    # Modify the libs if necessary for systems with only -mt boost libs     
     171    if not os.path.exists( 
     172        os.path.join(sysconfig.PREFIX, "lib", "libboost-filesystem.so")): 
     173        # It's likely that this system doesn't have symlinks setup 
     174        # So add '-mt' to the libraries 
     175        for lib in _libraries: 
     176            if lib[:6] == "boost_": 
     177                _libraries[_libraries.index(lib)] = lib + "-mt" 
    169178 
    170179_sources = glob.glob("./libtorrent/src/*.cpp") + \ 
  • trunk/setup.py

    r3654 r3766  
    167167        'z' 
    168168        ] 
     169     
     170    # Modify the libs if necessary for systems with only -mt boost libs     
     171    if not os.path.exists( 
     172        os.path.join(sysconfig.PREFIX, "lib", "libboost-filesystem.so")): 
     173        # It's likely that this system doesn't have symlinks setup 
     174        # So add '-mt' to the libraries 
     175        for lib in _libraries: 
     176            if lib[:6] == "boost_": 
     177                _libraries[_libraries.index(lib)] = lib + "-mt" 
    169178 
    170179_sources = glob.glob("./libtorrent/src/*.cpp") + \