]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
- Issue #26884: Fix linking extension modules for cross builds.
authordoko@ubuntu.com <doko@ubuntu.com>
Sat, 4 Jun 2016 22:41:58 +0000 (00:41 +0200)
committerdoko@ubuntu.com <doko@ubuntu.com>
Sat, 4 Jun 2016 22:41:58 +0000 (00:41 +0200)
  Patch by Xavier de Gaye.

Lib/distutils/command/build_ext.py
Misc/NEWS

index d4cb11e6dbd78ab3f95e1e6dcc7b9dd2e9a9d715..f03a4e31d8d7e2216597239e8fcffc20b5c44638 100644 (file)
@@ -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
index ed09a5d145ce34a479357b57ef57d23ccfc1f43e..8b82531d3871a676cab3da3acf510f45f38cd098 100644 (file)
--- 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.