From 6ada01234db375a606e11bab480e56b21d0825ed Mon Sep 17 00:00:00 2001 From: "doko@ubuntu.com" Date: Sun, 5 Jun 2016 00:41:58 +0200 Subject: - Issue #26884: Fix linking extension modules for cross builds. Patch by Xavier de Gaye. --- Lib/distutils/command/build_ext.py | 2 +- Misc/NEWS | 3 +++ 2 files changed, 4 insertions(+), 1 deletion(-) 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 diff --git a/Misc/NEWS b/Misc/NEWS index ed09a5d..8b82531 100644 --- a/Misc/NEWS +++ b/Misc/NEWS @@ -561,6 +561,9 @@ Tests 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. -- cgit v0.12