Changeset 977 for python/trunk/setup.py


Ignore:
Timestamp:
Feb 9, 2017, 5:56:27 PM (8 years ago)
Author:
Yuri Dario
Message:

python: add cx to list of std libs, improve search filter for import libs.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • python/trunk/setup.py

    r568 r977  
    558558        # Check for MacOS X, which doesn't need libm.a at all
    559559        math_libs = ['m']
     560        if host_platform in ['os2knix']:
     561            math_libs.append('cx')
    560562        if host_platform in ['darwin', 'beos']:
    561563            math_libs = []
     
    673675        # Memory-mapped files (also works on Win32).
    674676        if host_platform in ['os2knix']:
    675             exts.append( Extension('mmap', ['mmapmodule.c'], libraries=['mmap']) )
     677            exts.append( Extension('mmap', ['mmapmodule.c'], libraries=['cx']) )
    676678        elif host_platform not in ['atheos']:
    677679            exts.append( Extension('mmap', ['mmapmodule.c']) )
     
    815817                                   include_dirs = ssl_incs,
    816818                                   library_dirs = ssl_libs,
    817                                    libraries = ['ssl', 'crypto'],
     819                                   libraries = ['ssl', 'crypto', 'cx'],
    818820                                   depends = ['socketmodule.h']), )
    819821        else:
     
    10771079            db_incs = [db_incdir]
    10781080            dblibs = [dblib]
    1079             # YD add required libs
    1080             if os.name == "os2":
    1081                 dblibs += ["mmap", "pthread"]
    10821081            # We add the runtime_library_dirs argument because the
    10831082            # BerkeleyDB lib we're linking against often isn't in the
Note: See TracChangeset for help on using the changeset viewer.