diff options
| author | guenther <> | 2016-11-04 18:28:58 +0000 |
|---|---|---|
| committer | guenther <> | 2016-11-04 18:28:58 +0000 |
| commit | ce835f2efa54fde1b0bcb50acb340a01efb19727 (patch) | |
| tree | a976d8fd54ff6f0b241962b2bdfdd29e113892f7 /src/lib/libssl/Makefile | |
| parent | 024ec5a1a47931bab0bc1d479eb68c0f9101e447 (diff) | |
| download | openbsd-ce835f2efa54fde1b0bcb50acb340a01efb19727.tar.gz openbsd-ce835f2efa54fde1b0bcb50acb340a01efb19727.tar.bz2 openbsd-ce835f2efa54fde1b0bcb50acb340a01efb19727.zip | |
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@
Diffstat (limited to 'src/lib/libssl/Makefile')
| -rw-r--r-- | src/lib/libssl/Makefile | 10 |
1 files changed, 9 insertions, 1 deletions
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 @@ | |||
| 1 | # $OpenBSD: Makefile,v 1.23 2016/09/19 03:25:22 bcook Exp $ | 1 | # $OpenBSD: Makefile,v 1.24 2016/11/04 18:28:58 guenther Exp $ |
| 2 | 2 | ||
| 3 | SUBDIR= man | 3 | SUBDIR= man |
| 4 | PC_FILES=openssl.pc libssl.pc | 4 | PC_FILES=openssl.pc libssl.pc |
| @@ -17,6 +17,9 @@ CFLAGS+= -I${.CURDIR} | |||
| 17 | 17 | ||
| 18 | LDADD+= -L${BSDOBJDIR}/lib/libcrypto -lcrypto | 18 | LDADD+= -L${BSDOBJDIR}/lib/libcrypto -lcrypto |
| 19 | 19 | ||
| 20 | VERSION_SCRIPT= Symbols.map | ||
| 21 | SYMBOL_LIST= ${.CURDIR}/Symbols.list | ||
| 22 | |||
| 20 | SRCS=\ | 23 | SRCS=\ |
| 21 | s3_srvr.c s3_clnt.c s3_lib.c s3_pkt.c s3_both.c \ | 24 | s3_srvr.c s3_clnt.c s3_lib.c s3_pkt.c s3_both.c \ |
| 22 | s23_srvr.c s23_clnt.c s23_lib.c s23_pkt.c \ | 25 | s23_srvr.c s23_clnt.c s23_lib.c s23_pkt.c \ |
| @@ -46,6 +49,11 @@ includes: | |||
| 46 | eval "$$j"; \ | 49 | eval "$$j"; \ |
| 47 | done; | 50 | done; |
| 48 | 51 | ||
| 52 | ${VERSION_SCRIPT}: ${SYMBOL_LIST} | ||
| 53 | { printf '{\n\tglobal:\n'; \ | ||
| 54 | sed '/^[._a-zA-Z]/s/$$/;/; s/^/ /' ${SYMBOL_LIST}; \ | ||
| 55 | printf '\n\tlocal:\n\t\t*;\n};\n'; } >$@.tmp && mv $@.tmp $@ | ||
| 56 | |||
| 49 | .include <bsd.lib.mk> | 57 | .include <bsd.lib.mk> |
| 50 | 58 | ||
| 51 | all: ${PC_FILES} | 59 | all: ${PC_FILES} |
