Page MenuHomeFreeBSD

libcrypto: compile all PIC objects with -DOPENSSL_PIC
ClosedPublic

Authored by ngie on Apr 21 2024, 5:45 PM.
Tags
None
Referenced Files
Unknown Object (File)
Dec 29 2025, 11:35 PM
Unknown Object (File)
Nov 27 2025, 1:35 AM
Unknown Object (File)
Nov 24 2025, 11:01 PM
Unknown Object (File)
Nov 1 2025, 7:05 PM
Unknown Object (File)
Oct 29 2025, 7:41 AM
Unknown Object (File)
Oct 25 2025, 3:53 AM
Unknown Object (File)
Oct 20 2025, 4:39 PM
Unknown Object (File)
Oct 20 2025, 4:39 PM
Subscribers

Details

Summary

This change modifies the libcrypto PIC objects to always link with
-DOPENSSL_PIC to restore parity with the upstream build process. This
ensures that -DOPENSSL_PIC is used whenever building the auxiliary
shared objects, e.g., the fips provider, the legacy provider, etc.

Diff Detail

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

Event Timeline

ngie requested review of this revision.Apr 21 2024, 5:45 PM

Fix the change to properly append the CFLAG to PICFLAG and do it after including bsd.lib.mk to properly compile/link libcrypto.so.

e.g., the fips provider, the legacy provider, etc.

Actually it is precisely just those two

Move the definition to secure/lib/libcrypto/modules/Makefile.inc

This only affects modules - nothing else.

This revision is now accepted and ready to land.Fri, Mar 20, 12:44 AM