summaryrefslogtreecommitdiff
path: root/lib/libtls/Makefile
diff options
context:
space:
mode:
Diffstat (limited to 'lib/libtls/Makefile')
-rw-r--r--lib/libtls/Makefile10
1 files changed, 9 insertions, 1 deletions
diff --git a/lib/libtls/Makefile b/lib/libtls/Makefile
index f90c57d53fd..bc46332da36 100644
--- a/lib/libtls/Makefile
+++ b/lib/libtls/Makefile
@@ -1,4 +1,4 @@
-# $OpenBSD: Makefile,v 1.26 2016/11/02 15:18:42 beck Exp $
+# $OpenBSD: Makefile,v 1.27 2016/11/04 18:23:32 guenther Exp $
CFLAGS+= -Wall -Werror -Wimplicit
CFLAGS+= -DLIBRESSL_INTERNAL
@@ -10,6 +10,9 @@ DPADD= ${LIBCRYPTO} ${LIBSSL}
LDADD+= -L${BSDOBJDIR}/lib/libcrypto -lcrypto
LDADD+= -L${BSDOBJDIR}/lib/libssl -lssl
+VERSION_SCRIPT= Symbols.map
+SYMBOL_LIST= ${.CURDIR}/Symbols.list
+
HDRS= tls.h
SRCS= tls.c \
@@ -34,4 +37,9 @@ 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 <bsd.lib.mk>