Skip to content

Export CFLAGS/LDFLAGS before ./config so OpenSSL rpath is actually baked in#444

Merged
ColtonWilley merged 1 commit into
wolfSSL:masterfrom
aidangarske:fix-openssl-rpath-baking
Jul 14, 2026
Merged

Export CFLAGS/LDFLAGS before ./config so OpenSSL rpath is actually baked in#444
ColtonWilley merged 1 commit into
wolfSSL:masterfrom
aidangarske:fix-openssl-rpath-baking

Conversation

@aidangarske

@aidangarske aidangarske commented Jul 13, 2026

Copy link
Copy Markdown
Member

Export LDFLAGS before ./config instead of after, so OpenSSL captures the
-Wl,-rpath flags at configure time. Without this the rpath was dropped and the
built openssl had none, leaving it dependent on LD_LIBRARY_PATH to find
libssl.so.3 (intermittent cannot open shared object file in CI). Now the
binary self-locates its libs. Makes the intent of b6ca8e1 actually work.

preventative for: https://jenkins-supervisor.wolfssl.com/#/open-issues/524

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

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

This PR fixes the OpenSSL build in install_openssl() so the intended RPATH is actually captured during OpenSSL’s configure phase, preventing openssl-install/bin/openssl from depending on LD_LIBRARY_PATH to locate its sibling libssl/libcrypto.

Changes:

  • Move CFLAGS/CXXFLAGS/LDFLAGS export so it occurs before ./config, allowing OpenSSL’s Configure step to bake the flags into the generated Makefile.
  • Add an explanatory comment documenting why the ordering matters.

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

Comment thread scripts/utils-openssl.sh Outdated
@ColtonWilley
ColtonWilley merged commit 6d385a1 into wolfSSL:master Jul 14, 2026
72 checks passed
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.

3 participants