diff options
author | Victor Stinner <vstinner@redhat.com> | 2019-04-25 18:13:10 (GMT) |
---|---|---|
committer | GitHub <noreply@github.com> | 2019-04-25 18:13:10 (GMT) |
commit | 8c3ecc6bacc8d0cd534f2b5b53ed962dd1368c7b (patch) | |
tree | dec5a169a27fde398d57e508f0eb383f1975e418 /Makefile.pre.in | |
parent | d7befad328ad1a6d1f812be2bf154c1cd1e01fbc (diff) | |
download | cpython-8c3ecc6bacc8d0cd534f2b5b53ed962dd1368c7b.zip cpython-8c3ecc6bacc8d0cd534f2b5b53ed962dd1368c7b.tar.gz cpython-8c3ecc6bacc8d0cd534f2b5b53ed962dd1368c7b.tar.bz2 |
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.
Diffstat (limited to 'Makefile.pre.in')
-rw-r--r-- | Makefile.pre.in | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Makefile.pre.in b/Makefile.pre.in index cd7098c..68ac772 100644 --- a/Makefile.pre.in +++ b/Makefile.pre.in @@ -1460,7 +1460,7 @@ libinstall: build_all $(srcdir)/Modules/xxmodule.c -PYTHONPATH=$(DESTDIR)$(LIBDEST) $(RUNSHARED) \ $(PYTHON_FOR_BUILD) -m lib2to3.pgen2.driver $(DESTDIR)$(LIBDEST)/lib2to3/PatternGrammar.txt -python-config: $(srcdir)/Misc/python-config.in Misc/python-config.sh +python-config: $(srcdir)/Misc/python-config.in $(srcdir)/Misc/python-config.sh @ # Substitution happens here, as the completely-expanded BINDIR @ # is not available in configure sed -e "s,@EXENAME@,$(BINDIR)/python$(LDVERSION)$(EXE)," < $(srcdir)/Misc/python-config.in >python-config.py |