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)
Wed, Apr 15, 10:09 AM
Unknown Object (File)
Wed, Apr 15, 12:28 AM
Unknown Object (File)
Tue, Apr 14, 3:59 AM
Unknown Object (File)
Sat, Apr 11, 6:32 PM
Unknown Object (File)
Sat, Apr 11, 2:34 PM
Unknown Object (File)
Sat, Apr 11, 6:36 AM
Unknown Object (File)
Thu, Apr 9, 11:37 PM
Unknown Object (File)
Mon, Apr 6, 3:38 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 Not Applicable
Unit
Tests Not Applicable

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