Skip to content

Fix macOS dyld lib path#443

Open
aidangarske wants to merge 1 commit into
wolfSSL:masterfrom
aidangarske:fix-macos-dyld-library-path
Open

Fix macOS dyld lib path#443
aidangarske wants to merge 1 commit into
wolfSSL:masterfrom
aidangarske:fix-macos-dyld-library-path

Conversation

@aidangarske

@aidangarske aidangarske commented Jul 13, 2026

Copy link
Copy Markdown
Member

On macOS the loader honors DYLD_LIBRARY_PATH, not LD_LIBRARY_PATH, but env-setup only exported the latter. Tests then relied on rpath alone and broke when OpenSSL bumped its soname (libssl.so.3 -> libssl.so.4). Export DYLD_LIBRARY_PATH alongside LD_LIBRARY_PATH.

Fixes the wolfProvider PRB macOS timeout supervisor issue (infra:job::wolfProvider/PRB-master-job::timeout), where the macOS branches failed to load the freshly built OpenSSL libs and hung until the parent 2h timeout.

Preventative for: https://jenkins-supervisor.wolfssl.com/#/open-issues/511

Copilot AI review requested due to automatic review settings July 13, 2026 20:18

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Updates the repository’s env-setup helper to correctly configure macOS dynamic library lookup so locally built OpenSSL/wolfSSL/wolfProvider libraries are found reliably during CI and local runs.

Changes:

  • Continue reconstructing LD_LIBRARY_PATH as before for ELF platforms.
  • Add a parallel export of DYLD_LIBRARY_PATH for macOS so dyld can locate freshly built libraries even when sonames change.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

@aidangarske aidangarske self-assigned this Jul 13, 2026
@aidangarske

Copy link
Copy Markdown
Member Author

Jenkins retest this please

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.

2 participants