]> granicus.if.org Git - python/commit
bpo-21536: C extensions are no longer linked to libpython (GH-12946)
authorVictor Stinner <vstinner@redhat.com>
Thu, 25 Apr 2019 18:13:10 +0000 (20:13 +0200)
committerGitHub <noreply@github.com>
Thu, 25 Apr 2019 18:13:10 +0000 (20:13 +0200)
commit8c3ecc6bacc8d0cd534f2b5b53ed962dd1368c7b
treedec5a169a27fde398d57e508f0eb383f1975e418
parentd7befad328ad1a6d1f812be2bf154c1cd1e01fbc
bpo-21536: C extensions are no longer linked to libpython (GH-12946)

On Unix, C extensions are no longer linked to libpython.

It is now possible to load a C extension built using a shared library
Python with a statically linked Python.

When Python is embedded, libpython must not be loaded with
RTLD_LOCAL, but RTLD_GLOBAL instead. Previously, using RTLD_LOCAL, it
was already not possible to load C extensions which were not linked
to libpython, like C extensions of the standard library built by the
"*shared*" section of Modules/Setup.

distutils, python-config and python-config.py have been modified.
Doc/distutils/apiref.rst
Doc/whatsnew/3.8.rst
Lib/distutils/command/build_ext.py
Makefile.pre.in
Misc/NEWS.d/next/Build/2019-04-25-01-51-52.bpo-21536.ACQkiC.rst [new file with mode: 0644]
Misc/python-config.in
Misc/python-config.sh.in