From 83e73dadd90af52585df1bcce4e5b84da25fe19e Mon Sep 17 00:00:00 2001 From: beck <> Date: Fri, 11 Nov 2022 11:25:18 +0000 Subject: Add support for symbol hiding disabled by default. Fully explained in libcrypto/README. TL;DR make sure libcrypto and libssl's function calls internally and to each other are via symbol names that won't get overridden by linking other libraries. Mostly work by guenther@, which will currently be gated behind a build setting NAMESPACE=yes. once we convert all the symbols to this method we will do a major bump and pick up the changes. ok tb@ jsing@ --- src/lib/libssl/Makefile | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) (limited to 'src/lib/libssl/Makefile') diff --git a/src/lib/libssl/Makefile b/src/lib/libssl/Makefile index 1788cd75a3..a6ee26a667 100644 --- a/src/lib/libssl/Makefile +++ b/src/lib/libssl/Makefile @@ -1,4 +1,4 @@ -# $OpenBSD: Makefile,v 1.77 2022/08/17 07:39:19 jsing Exp $ +# $OpenBSD: Makefile,v 1.78 2022/11/11 11:25:18 beck Exp $ .include .ifndef NOMAN @@ -16,6 +16,9 @@ CFLAGS+= -Wall -Wundef CFLAGS+= -Werror .endif CFLAGS+= -DLIBRESSL_INTERNAL +.ifdef NAMESPACE +CFLAGS+= -DLIBRESSL_NAMESPACE +.endif .ifdef TLS1_3 CFLAGS+= -DLIBRESSL_HAS_TLS1_3_CLIENT CFLAGS+= -DLIBRESSL_HAS_TLS1_3_SERVER @@ -24,7 +27,9 @@ CFLAGS+= -DLIBRESSL_HAS_TLS1_3_SERVER CFLAGS+= -DTLS13_DEBUG .endif CFLAGS+= -I${.CURDIR} +CFLAGS+= -I${.CURDIR}/../libcrypto/hidden CFLAGS+= -I${.CURDIR}/../libcrypto/bio +CFLAGS+= -I${.CURDIR}/hidden LDADD+= -L${BSDOBJDIR}/lib/libcrypto -lcrypto -- cgit v1.2.3-55-g6feb