changeset: 101726:d00837de03d7 branch: 3.5 parent: 101720:b7d65f384cf5 user: doko@ubuntu.com date: Sun Jun 05 00:41:58 2016 +0200 files: Lib/distutils/command/build_ext.py Misc/NEWS description: - Issue #26884: Fix linking extension modules for cross builds. Patch by Xavier de Gaye. diff -r b7d65f384cf5 -r d00837de03d7 Lib/distutils/command/build_ext.py --- a/Lib/distutils/command/build_ext.py Sat Jun 04 23:30:45 2016 +0300 +++ b/Lib/distutils/command/build_ext.py Sun Jun 05 00:41:58 2016 +0200 @@ -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 -r b7d65f384cf5 -r d00837de03d7 Misc/NEWS --- a/Misc/NEWS Sat Jun 04 23:30:45 2016 +0300 +++ b/Misc/NEWS Sun Jun 05 00:41:58 2016 +0200 @@ -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.