summaryrefslogtreecommitdiffstats
path: root/Misc/NEWS.d/next/Build/2019-04-25-01-51-52.bpo-21536.ACQkiC.rst
blob: 5e1e717b1ea88572aeb4db9278a04074db9306d3 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
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.