diff options
author | Theo Buehler <tb@cvs.openbsd.org> | 2024-01-21 07:33:47 +0000 |
---|---|---|
committer | Theo Buehler <tb@cvs.openbsd.org> | 2024-01-21 07:33:47 +0000 |
commit | b40d32598abbeb6a0ed0e2bcb9557a5ad4eb07d6 (patch) | |
tree | 6ac7563d621f39ca3489e6c7123e9707489a512d /lib/libz | |
parent | 334e683730892312fd22925ad45f42b9a6204bb7 (diff) |
Define HAVE_HIDDEN for libz
This adds the hidden visibility attribute to functions that are needed in
multiple source files of the library but not part of the public API. This
is technically a major bump, but that decided to be overkill.
discussed with deraadt and millert
Diffstat (limited to 'lib/libz')
-rw-r--r-- | lib/libz/Makefile | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/lib/libz/Makefile b/lib/libz/Makefile index 467668b0897..19f8589341e 100644 --- a/lib/libz/Makefile +++ b/lib/libz/Makefile @@ -1,4 +1,4 @@ -# $OpenBSD: Makefile,v 1.21 2021/07/04 14:24:49 tb Exp $ +# $OpenBSD: Makefile,v 1.22 2024/01/21 07:33:46 tb Exp $ LIB= z HDRS= zconf.h zlib.h @@ -10,6 +10,8 @@ MAN= compress.3 PC_FILES=zlib.pc CLEANFILES+=${PC_FILES} +CFLAGS += -DHAVE_HIDDEN + includes: @cd ${.CURDIR}; for i in $(HDRS); do \ j="cmp -s $$i ${DESTDIR}/usr/include/$$i || \ |