aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorEnji Cooper <ngie@FreeBSD.org>2026-03-19 23:56:41 +0000
committerEnji Cooper <ngie@FreeBSD.org>2026-03-20 00:51:51 +0000
commit14b9955e57cc28b61e785165b9effcbe620edb46 (patch)
tree2f840baea3880bb8b04477a1812ffeb6558792e2
parentf9795615415074b23faf8e5d937c2ef31045d3d0 (diff)
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
-rw-r--r--secure/lib/libcrypto/modules/Makefile.inc2
1 files changed, 2 insertions, 0 deletions
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