Skip to content
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

implement PY_UNSUPPORTED_OPENSSL_BUILD on macOS #100265

Open
wants to merge 2 commits into
base: main
Choose a base branch
from

Conversation

mmomtchev
Copy link

@mmomtchev mmomtchev commented Dec 15, 2022

This is an extension for the undocumented and untested (on purpose) feature PY_UNSUPPORTED_OPENSSL_BUILD feature for macOS

This is something that is possible on macOS too via an obscure ld64 linker option called -lhidden-l which specifies that the static library version is to be included and its symbols are not to be reexported.

The macOS ld64 option exists at least since OS X 10.11, but clang supports it only since 15.0.0, hence the -Wl which ensures backwards compatibility

https://releases.llvm.org/15.0.0/tools/lld/docs/ReleaseNotes.html
https://opensource.apple.com/source/ld64/ld64-609/doc/man/man1/ld.1.auto.html

PS Apple's own man-page seems to be slightly misleading - this does not work if both the dynamic and the static libraries are installed at this location - I am still looking for a way to select the static library in this case

@bedevere-bot
Copy link

bedevere-bot commented Dec 15, 2022

Most changes to Python require a NEWS entry.

Please add it using the blurb_it web app or the blurb command-line tool.

@netlify
Copy link

netlify bot commented Dec 15, 2022

Deploy Preview for python-cpython-preview canceled.

Name Link
🔨 Latest commit 284fe16
🔍 Latest deploy log https://app.netlify.com/sites/python-cpython-preview/deploys/639b1e13e360b50008d5e91d

@cpython-cla-bot
Copy link

cpython-cla-bot bot commented Dec 15, 2022

All commit authors signed the Contributor License Agreement.
CLA signed

@bedevere-bot
Copy link

bedevere-bot commented Dec 15, 2022

Most changes to Python require a NEWS entry.

Please add it using the blurb_it web app or the blurb command-line tool.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants