Page MenuHomeFreeBSD

libcrypto, libssl: link .so's with -Bsymbolic for upstream parity
Needs ReviewPublic

Authored by ngie on Apr 21 2024, 5:44 PM.
Tags
None
Referenced Files
Unknown Object (File)
Fri, Sep 11, 7:11 PM
Unknown Object (File)
Fri, Sep 4, 5:40 PM
Unknown Object (File)
Fri, Aug 21, 11:13 AM
Unknown Object (File)
Fri, Aug 21, 11:12 AM
Unknown Object (File)
Aug 12 2026, 12:05 AM
Unknown Object (File)
Aug 11 2026, 11:52 PM
Unknown Object (File)
Aug 11 2026, 4:59 AM
Unknown Object (File)
Aug 11 2026, 4:08 AM
Subscribers

Details

Reviewers
cy
emaste
Summary

This change modifies libcrypto, libssl, and dependent .so files to use
-Wl,-Bsymbolic to prefer locally defined symbols over globally defined
symbols in order to have parity with the upstream OpenSSL build process.

Test Plan

TODO: run tinderbox build

Diff Detail

Repository
rG FreeBSD src repository
Lint
Lint Skipped
Unit
Tests Skipped
Build Status
Buildable 57263
Build 54151: arc lint + arc unit

Event Timeline

ngie requested review of this revision.Apr 21 2024, 5:44 PM
ngie added reviewers: cy, emaste.

-Wl,-Bsymbolic should be added to SOLINKOPTS instead of LDFLAGS

This avoids breaking the static object build case.