[SCons] Fix Cython module compilation with MinGW
This commit is contained in:
parent
a02d3193de
commit
6e72f8930f
1 changed files with 4 additions and 0 deletions
|
|
@ -24,6 +24,10 @@ def configure_python(env, python_command):
|
|||
env.Append(LINKFLAGS='-undefined dynamic_lookup')
|
||||
elif env['OS'] == 'Windows':
|
||||
env.Append(LIBPATH=prefix+'/libs')
|
||||
if env['toolchain'] == 'mingw':
|
||||
env.Append(LIBS='python%s' % py_version.replace('.',''))
|
||||
if env['OS_BITS'] == 64:
|
||||
env.Append(CPPDEFINES='MS_WIN64')
|
||||
elif env['OS'] == 'Cygwin':
|
||||
# extract 'pythonX.Y' from 'libpythonX.Y.dll.a'
|
||||
env.Append(LIBS=pylib[3:-6])
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue