git: 14b9955e57cc - main - libcrypto: compile all PIC objects with -DOPENSSL_PIC

From: Enji Cooper <ngie_at_FreeBSD.org>
Date: Fri, 20 Mar 2026 00:52:03 UTC
The branch main has been updated by ngie:

URL: https://cgit.FreeBSD.org/src/commit/?id=14b9955e57cc28b61e785165b9effcbe620edb46

commit 14b9955e57cc28b61e785165b9effcbe620edb46
Author:     Enji Cooper <ngie@FreeBSD.org>
AuthorDate: 2026-03-19 23:56:41 +0000
Commit:     Enji Cooper <ngie@FreeBSD.org>
CommitDate: 2026-03-20 00:51:51 +0000

    libcrypto: compile all PIC objects with -DOPENSSL_PIC
    
    This change modifies the libcrypto PIC objects to always compile with
    `-DOPENSSL_PIC` to restore parity with the upstream build process. This
    ensures that `-DOPENSSL_PIC` is used whenever building the auxiliary
    shared objects. In this case, just the legacy provider (we no longer
    distribute the fips provider).
    
    MFC after:              2 weeks
    Differential Revision:  https://reviews.freebsd.org/D44896
---
 secure/lib/libcrypto/modules/Makefile.inc | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/secure/lib/libcrypto/modules/Makefile.inc b/secure/lib/libcrypto/modules/Makefile.inc
index 64fb57ee74c5..c2d25269762d 100644
--- a/secure/lib/libcrypto/modules/Makefile.inc
+++ b/secure/lib/libcrypto/modules/Makefile.inc
@@ -4,6 +4,8 @@ SHLIBDIR=	${LIBDIR}/ossl-modules
 
 LCRYPTO_SRC=	${SRCTOP}/crypto/openssl
 
+PICFLAG+=	-DOPENSSL_PIC
+
 CFLAGS+=	-I${LCRYPTO_SRC}
 CFLAGS+=	-I${LCRYPTO_SRC}/include
 CFLAGS+=	-I${LCRYPTO_SRC}/providers/common/include