Uh oh!
There was an error while loading. Please reload this page.
bpo-44133: Export Py_FrozenMain() symbol - #26130
Conversation
The Python binary now builds the libpython static library using "-Wl,--whole-archive" linker option to export all symbols exported by object files. Previously, the "Py_FrozenMain" symbol was not exported.
pablogsal
left a comment
There was a problem hiding this comment.
This needs backport to 3.10 at the very least, no?
Uh oh!
There was an error while loading. Please reload this page.
vstinner
commented
May 14, 2021
I'm not sure that it makes sense to treat a python executable binary as a library, and so expect that all symbols are exported. |
It absolutely does, if not, how can C extensions get access to the C-API? |
corona10
left a comment
There was a problem hiding this comment.
clang does not support --whole-archive can we use -all_load on macOS for that purpose?
This PR is stale because it has been open for 30 days with no activity. |
vstinner
commented
Sep 21, 2021
|
shihai1991
commented
Dec 1, 2021
I use |
The Python binary now builds the libpython static library using
"-Wl,--whole-archive" linker option to export all symbols exported by
object files. Previously, the "Py_FrozenMain" symbol was not
exported.
https://bugs.python.org/issue44133