Skip to content

Fix OpenSSL loading on modern macOS (probe versioned install paths) - #36

Open
ltrgoddard wants to merge 1 commit into
geby:masterfrom
ltrgoddard:darwin-openssl-paths
Open

Fix OpenSSL loading on modern macOS (probe versioned install paths)#36
ltrgoddard wants to merge 1 commit into
geby:masterfrom
ltrgoddard:darwin-openssl-paths

Conversation

@ltrgoddard

Copy link
Copy Markdown

On macOS 10.15+ the system libssl.dylib/libcrypto.dylib are stubs that abort the process when loaded. This commit replaces the individual paths with a search of known install paths (Homebrew, MacPorts, /usr/local/lib) for versioned 3.x/1.1.x libraries, similar to the behaviour on Windows. The probe is skipped if the caller has set DLLSSLName/DLLUtilName.

Encountered while trying to build benibela/xidel and tested on M2 MacBook Air, Tahoe 26.5 (25F71), Homebrew OpenSSL 3.

…crypto are stubs that abort the process on load, so probe versioned libraries in the usual Homebrew/MacPorts//usr/local/lib locations instead, as the Windows branch does. Skipped when the caller has set DLLSSLName/DLLUtilName.
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.

1 participant