Skip to content

Commit 6b2ed38

Browse files
authored
bpo-42591: Export missing Py_FrozenMain() symbol (GH-23730) (GH-23734)
Export the Py_FrozenMain() function: fix a Python 3.9.0 regression. Python 3.9 uses -fvisibility=hidden and the function was not exported explicitly and so not exported. (cherry picked from commit b5c7b38)
1 parent 33cbb04 commit 6b2ed38

2 files changed

Lines changed: 5 additions & 0 deletions

File tree

Include/pylifecycle.h

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,8 @@ PyAPI_FUNC(void) _Py_NO_RETURN Py_Exit(int);
3232
/* Bootstrap __main__ (defined in Modules/main.c) */
3333
PyAPI_FUNC(int) Py_Main(int argc, wchar_t **argv);
3434

35+
PyAPI_FUNC(int) Py_FrozenMain(int argc, char **argv);
36+
3537
PyAPI_FUNC(int) Py_BytesMain(int argc, char **argv);
3638

3739
/* In pathconfig.c */
Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
Export the :c:func:`Py_FrozenMain` function: fix a Python 3.9.0 regression.
2+
Python 3.9 uses ``-fvisibility=hidden`` and the function was not exported
3+
explicitly and so not exported.

0 commit comments

Comments
 (0)