Skip to content

Commit 6ada012

Browse files
committed
- Issue #26884: Fix linking extension modules for cross builds.
Patch by Xavier de Gaye.
1 parent a23234b commit 6ada012

File tree

2 files changed

+4
-1
lines changed

2 files changed

+4
-1
lines changed

Lib/distutils/command/build_ext.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -748,7 +748,7 @@ def get_libraries(self, ext):
748748
if sysconfig.get_config_var('Py_ENABLE_SHARED'):
749749
pythonlib = 'python{}.{}{}'.format(
750750
sys.hexversion >> 24, (sys.hexversion >> 16) & 0xff,
751-
sys.abiflags)
751+
sysconfig.get_config_var('ABIFLAGS'))
752752
return ext.libraries + [pythonlib]
753753
else:
754754
return ext.libraries

Misc/NEWS

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -561,6 +561,9 @@ Tests
561561
Build
562562
-----
563563

564+
- Issue #26884: Fix linking extension modules for cross builds.
565+
Patch by Xavier de Gaye.
566+
564567
- Issue #22359: Disable the rules for running _freeze_importlib and pgen when
565568
cross-compiling. The output of these programs is normally saved with the
566569
source code anyway, and is still regenerated when doing a native build.

0 commit comments

Comments
 (0)