summaryrefslogtreecommitdiffstats
path: root/Lib/distutils/command
diff options
context:
space:
mode:
authordoko@ubuntu.com <doko@ubuntu.com>2016-06-04 22:41:58 (GMT)
committerdoko@ubuntu.com <doko@ubuntu.com>2016-06-04 22:41:58 (GMT)
commit6ada01234db375a606e11bab480e56b21d0825ed (patch)
tree59a9cae1e3d3fad84b5fcf8b372cc0edfbc998f9 /Lib/distutils/command
parenta23234b10d3de9ef88318c82efe2c1b5f288e08d (diff)
downloadcpython-6ada01234db375a606e11bab480e56b21d0825ed.zip
cpython-6ada01234db375a606e11bab480e56b21d0825ed.tar.gz
cpython-6ada01234db375a606e11bab480e56b21d0825ed.tar.bz2
- Issue #26884: Fix linking extension modules for cross builds.
Patch by Xavier de Gaye.
Diffstat (limited to 'Lib/distutils/command')
-rw-r--r--Lib/distutils/command/build_ext.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/Lib/distutils/command/build_ext.py b/Lib/distutils/command/build_ext.py
index d4cb11e..f03a4e3 100644
--- a/Lib/distutils/command/build_ext.py
+++ b/Lib/distutils/command/build_ext.py
@@ -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