diff options
author | guenther <> | 2016-11-04 18:23:32 +0000 |
---|---|---|
committer | guenther <> | 2016-11-04 18:23:32 +0000 |
commit | e8686503dae1f619d00440b2df8c7bdef857a901 (patch) | |
tree | 30cc145fffcee6328b94fed90a468aa94b74da74 /src/lib/libtls/Makefile | |
parent | 3b007660bd04b1ebd97816eb1f5c5949de969c45 (diff) | |
download | openbsd-e8686503dae1f619d00440b2df8c7bdef857a901.tar.gz openbsd-e8686503dae1f619d00440b2df8c7bdef857a901.tar.bz2 openbsd-e8686503dae1f619d00440b2df8c7bdef857a901.zip |
Add an explict list of exported symbols with just the functions declared
in <tls.h>, and use __{BEGIN,END}_HIDDEN_DECLS in tls_internal.h to
optimize internal functions
ok jsing@
Diffstat (limited to 'src/lib/libtls/Makefile')
-rw-r--r-- | src/lib/libtls/Makefile | 10 |
1 files changed, 9 insertions, 1 deletions
diff --git a/src/lib/libtls/Makefile b/src/lib/libtls/Makefile index f90c57d53f..bc46332da3 100644 --- a/src/lib/libtls/Makefile +++ b/src/lib/libtls/Makefile | |||
@@ -1,4 +1,4 @@ | |||
1 | # $OpenBSD: Makefile,v 1.26 2016/11/02 15:18:42 beck Exp $ | 1 | # $OpenBSD: Makefile,v 1.27 2016/11/04 18:23:32 guenther Exp $ |
2 | 2 | ||
3 | CFLAGS+= -Wall -Werror -Wimplicit | 3 | CFLAGS+= -Wall -Werror -Wimplicit |
4 | CFLAGS+= -DLIBRESSL_INTERNAL | 4 | CFLAGS+= -DLIBRESSL_INTERNAL |
@@ -10,6 +10,9 @@ DPADD= ${LIBCRYPTO} ${LIBSSL} | |||
10 | LDADD+= -L${BSDOBJDIR}/lib/libcrypto -lcrypto | 10 | LDADD+= -L${BSDOBJDIR}/lib/libcrypto -lcrypto |
11 | LDADD+= -L${BSDOBJDIR}/lib/libssl -lssl | 11 | LDADD+= -L${BSDOBJDIR}/lib/libssl -lssl |
12 | 12 | ||
13 | VERSION_SCRIPT= Symbols.map | ||
14 | SYMBOL_LIST= ${.CURDIR}/Symbols.list | ||
15 | |||
13 | HDRS= tls.h | 16 | HDRS= tls.h |
14 | 17 | ||
15 | SRCS= tls.c \ | 18 | SRCS= tls.c \ |
@@ -34,4 +37,9 @@ includes: | |||
34 | eval "$$j"; \ | 37 | eval "$$j"; \ |
35 | done; | 38 | done; |
36 | 39 | ||
40 | ${VERSION_SCRIPT}: ${SYMBOL_LIST} | ||
41 | { printf '{\n\tglobal:\n'; \ | ||
42 | sed '/^[._a-zA-Z]/s/$$/;/; s/^/ /' ${SYMBOL_LIST}; \ | ||
43 | printf '\n\tlocal:\n\t\t*;\n};\n'; } >$@.tmp && mv $@.tmp $@ | ||
44 | |||
37 | .include <bsd.lib.mk> | 45 | .include <bsd.lib.mk> |