mirror of
https://github.com/python/cpython.git
synced 2025-08-03 16:39:00 +00:00
- Issue #26884: Fix linking extension modules for cross builds.
Patch by Xavier de Gaye.
This commit is contained in:
parent
a23234b10d
commit
6ada01234d
2 changed files with 4 additions and 1 deletions
|
@ -748,7 +748,7 @@ class build_ext(Command):
|
|||
if sysconfig.get_config_var('Py_ENABLE_SHARED'):
|
||||
pythonlib = 'python{}.{}{}'.format(
|
||||
sys.hexversion >> 24, (sys.hexversion >> 16) & 0xff,
|
||||
sys.abiflags)
|
||||
sysconfig.get_config_var('ABIFLAGS'))
|
||||
return ext.libraries + [pythonlib]
|
||||
else:
|
||||
return ext.libraries
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue