sergot / openssl

OpenSSL bindings for Perl 6
MIT License
14 stars 31 forks source link

Fix macOS build; probe openssl libraries in Build.pm6 #83

Closed skaji closed 3 years ago

skaji commented 3 years ago

Currently we cannot install OpenSSL module properly by zef install OpenSSL in macOS. This is because OpenSSL module tries to load libssl/libcrypto from /usr/lib, but they are incompatible.

This PR adds Build.pm6, where we probe openssl libraries by brew --prefix openssl.

I think it is reasonable to prefer homebrew's openssl; Net::SSLeay, ruby-build, python-build also prefer homebrew's openssl.

This PR will fix #80, #81.

lizmat commented 3 years ago

I hope @sergot will be able to merge this soon and do a new release.