From ce835f2efa54fde1b0bcb50acb340a01efb19727 Mon Sep 17 00:00:00 2001 From: guenther <> Date: Fri, 4 Nov 2016 18:28:58 +0000 Subject: Add an explict list of exported symbols with just the functions declared in the public headers, and use __{BEGIN,END}_HIDDEN_DECLS in the internal headers to optimize internal functions ok jsing@ --- src/lib/libssl/Makefile | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) (limited to 'src/lib/libssl/Makefile') diff --git a/src/lib/libssl/Makefile b/src/lib/libssl/Makefile index 6421aabe34..64b3b5060b 100644 --- a/src/lib/libssl/Makefile +++ b/src/lib/libssl/Makefile @@ -1,4 +1,4 @@ -# $OpenBSD: Makefile,v 1.23 2016/09/19 03:25:22 bcook Exp $ +# $OpenBSD: Makefile,v 1.24 2016/11/04 18:28:58 guenther Exp $ SUBDIR= man PC_FILES=openssl.pc libssl.pc @@ -17,6 +17,9 @@ CFLAGS+= -I${.CURDIR} LDADD+= -L${BSDOBJDIR}/lib/libcrypto -lcrypto +VERSION_SCRIPT= Symbols.map +SYMBOL_LIST= ${.CURDIR}/Symbols.list + SRCS=\ s3_srvr.c s3_clnt.c s3_lib.c s3_pkt.c s3_both.c \ s23_srvr.c s23_clnt.c s23_lib.c s23_pkt.c \ @@ -46,6 +49,11 @@ includes: eval "$$j"; \ done; +${VERSION_SCRIPT}: ${SYMBOL_LIST} + { printf '{\n\tglobal:\n'; \ + sed '/^[._a-zA-Z]/s/$$/;/; s/^/ /' ${SYMBOL_LIST}; \ + printf '\n\tlocal:\n\t\t*;\n};\n'; } >$@.tmp && mv $@.tmp $@ + .include all: ${PC_FILES} -- cgit v1.2.3-55-g6feb