bpo-44133: Export Py_FrozenMain() symbol#26130
bpo-44133: Export Py_FrozenMain() symbol#26130vstinner wants to merge 1 commit intopython:mainfrom vstinner:export_frozenmain
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?
|
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. |
|
|
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