diff options
author | Victor Stinner <vstinner@python.org> | 2022-01-13 18:24:28 (GMT) |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-01-13 18:24:28 (GMT) |
commit | 6be848922bc0f4c632c255c39de82a45b6480286 (patch) | |
tree | c20a5ac0989b76b96cb5e391bd445d21e68eca30 /Misc | |
parent | 0885999a8e5ffad3fae0302675ad0030e33a15af (diff) | |
download | cpython-6be848922bc0f4c632c255c39de82a45b6480286.zip cpython-6be848922bc0f4c632c255c39de82a45b6480286.tar.gz cpython-6be848922bc0f4c632c255c39de82a45b6480286.tar.bz2 |
bpo-44133: Link Python executable with object files (GH-30556)
When Python is built without --enable-shared, the "python" program is
now linked to object files, rather than being linked to the Python
library (libpython.a), to make sure that all symbols are exported.
Previously, the linker omitted some symbols like the Py_FrozenMain()
function.
When Python is configured with --without-static-libpython, the Python
static library (libpython.a) is no longer built.
* Check --without-static-libpython earlier in configure.ac
* Add LINK_PYTHON_OBJS and LINK_PYTHON_DEPS variables to Makefile.
* test_capi now ensures that the "Py_FrozenMain" symbol is exported.
Diffstat (limited to 'Misc')
-rw-r--r-- | Misc/NEWS.d/next/Build/2022-01-12-13-34-52.bpo-44133.HYCNXb.rst | 5 | ||||
-rw-r--r-- | Misc/NEWS.d/next/Build/2022-01-12-13-42-16.bpo-44133.NgyNAh.rst | 2 |
2 files changed, 7 insertions, 0 deletions
diff --git a/Misc/NEWS.d/next/Build/2022-01-12-13-34-52.bpo-44133.HYCNXb.rst b/Misc/NEWS.d/next/Build/2022-01-12-13-34-52.bpo-44133.HYCNXb.rst new file mode 100644 index 0000000..7c2a48a --- /dev/null +++ b/Misc/NEWS.d/next/Build/2022-01-12-13-34-52.bpo-44133.HYCNXb.rst @@ -0,0 +1,5 @@ +When Python is built without :option:`--enable-shared`, the ``python`` +program is now linked to object files, rather than being linked to the Python +static library (libpython.a), to make sure that all symbols are exported. +Previously, the linker omitted some symbols like the :c:func:`Py_FrozenMain` +function. Patch by Victor Stinner. diff --git a/Misc/NEWS.d/next/Build/2022-01-12-13-42-16.bpo-44133.NgyNAh.rst b/Misc/NEWS.d/next/Build/2022-01-12-13-42-16.bpo-44133.NgyNAh.rst new file mode 100644 index 0000000..3542850 --- /dev/null +++ b/Misc/NEWS.d/next/Build/2022-01-12-13-42-16.bpo-44133.NgyNAh.rst @@ -0,0 +1,2 @@ +When Python is configured with :option:`--without-static-libpython`, the Python +static library (libpython.a) is no longer built. Patch by Victor Stinner. |