-
-
Notifications
You must be signed in to change notification settings - Fork 33.7k
bpo-44133: Export Py_FrozenMain() symbol #26130
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
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.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
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.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
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