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
F157169960: D44896.id173966.diff
Tue, May 19, 12:13 AM
F157154358: D44896.id137465.diff
Mon, May 18, 8:20 PM
F157123787: D44896.id173963.diff
Mon, May 18, 2:54 PM
Unknown Object (File)
Sun, May 17, 7:21 PM
Unknown Object (File)
Sun, May 17, 5:08 PM
Unknown Object (File)
Fri, May 15, 3:18 AM
Unknown Object (File)
Tue, Apr 28, 6:29 PM
Unknown Object (File)
Tue, Apr 28, 6:21 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.Mar 20 2026, 12:44 AM