[Python-checkins] cpython (3.5): - Issue #26884: Fix linking extension modules for cross builds.
matthias.klose
python-checkins at python.org
Sat Jun 4 18:44:09 EDT 2016
https://hg.python.org/cpython/rev/d00837de03d7
changeset: 101726:d00837de03d7
branch: 3.5
parent: 101720:b7d65f384cf5
user: doko at ubuntu.com
date: Sun Jun 05 00:41:58 2016 +0200
summary:
- Issue #26884: Fix linking extension modules for cross builds.
Patch by Xavier de Gaye.
files:
Lib/distutils/command/build_ext.py | 2 +-
Misc/NEWS | 3 +++
2 files changed, 4 insertions(+), 1 deletions(-)
diff --git a/Lib/distutils/command/build_ext.py b/Lib/distutils/command/build_ext.py
--- a/Lib/distutils/command/build_ext.py
+++ b/Lib/distutils/command/build_ext.py
@@ -748,7 +748,7 @@
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
diff --git a/Misc/NEWS b/Misc/NEWS
--- a/Misc/NEWS
+++ b/Misc/NEWS
@@ -561,6 +561,9 @@
Build
-----
+- Issue #26884: Fix linking extension modules for cross builds.
+ Patch by Xavier de Gaye.
+
- Issue #22359: Disable the rules for running _freeze_importlib and pgen when
cross-compiling. The output of these programs is normally saved with the
source code anyway, and is still regenerated when doing a native build.
--
Repository URL: https://hg.python.org/cpython
More information about the Python-checkins
mailing list