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

macOS: check dylib exists in library paths #11

Merged
merged 1 commit into from Oct 28, 2021
Merged

Conversation

akiym
Copy link
Owner

@akiym akiym commented Oct 28, 2021

Previously openssl_lib_paths() returned "-L/usr/local/opt/openssl -L/usr/local/opt/openssl/lib" in many cases.
However, in macOS 12 Monterey, this behavior causes an error when building: perl is loading libcrypto in an unsafe way
So openssl_lib_paths() now returns directories where libcrypto.dylib and libssl.dylib exist as library path.

See also macports/macports-ports#12704

Previously `openssl_lib_paths()` returned `"-L/usr/local/opt/openssl -L/usr/local/opt/openssl/lib"` in many cases.
However, in macOS 12 Monterey, this behavior causes an error when building: `perl is loading libcrypto in an unsafe way`
So `openssl_lib_paths()` now returns directories where libcrypto.dylib and libssl.dylib exist as library path.

See also macports/macports-ports#12704
@akiym akiym merged commit b420ad2 into master Oct 28, 2021
@akiym akiym deleted the workaround-macos-12 branch October 28, 2021 15:33
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

1 participant