implement PY_UNSUPPORTED_OPENSSL_BUILD on macOS #100265
Open
+15
−3
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
This is an extension for the undocumented and untested (on purpose) feature
PY_UNSUPPORTED_OPENSSL_BUILDfeature for macOSThis is something that is possible on macOS too via an obscure
ld64linker option called-lhidden-lwhich specifies that the static library version is to be included and its symbols are not to be reexported.The macOS
ld64option exists at least since OS X 10.11, butclangsupports it only since 15.0.0, hence the-Wlwhich ensures backwards compatibilityhttps://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