summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--Makefile4
-rw-r--r--Symbol.map96
-rw-r--r--Versions.def11
3 files changed, 111 insertions, 0 deletions
diff --git a/Makefile b/Makefile
index 4fdbc29..8835e0d 100644
--- a/Makefile
+++ b/Makefile
@@ -47,6 +47,10 @@ SRCS+= gvmat64.S
CFLAGS+= -DASMV -DNO_UNDERLINE
.endif
+VERSION_DEF= ${.CURDIR}/Versions.def
+SYMBOL_MAPS= ${.CURDIR}/Symbol.map
+CFLAGS+= -DSYMBOL_VERSIONING
+
INCS= zconf.h zlib.h
minigzip: all minigzip.o
diff --git a/Symbol.map b/Symbol.map
new file mode 100644
index 0000000..714606b
--- /dev/null
+++ b/Symbol.map
@@ -0,0 +1,96 @@
+/*
+ * $FreeBSD$
+ */
+
+ZLIB_1.2.4.0 {
+ adler32;
+ adler32_combine64;
+ compress;
+ compress2;
+ compressBound;
+ crc32;
+ crc32_combine64;
+ deflate;
+ deflateBound;
+ deflateCopy;
+ deflateEnd;
+ deflateInit2_;
+ deflateInit_;
+ deflateParams;
+ deflatePrime;
+ deflateReset;
+ deflateSetDictionary;
+ deflateSetHeader;
+ deflateTune;
+ get_crc_table;
+ gzbuffer;
+ gzclearerr;
+ gzclose;
+ gzclose_r;
+ gzclose_w;
+ gzdirect;
+ gzdopen;
+ gzeof;
+ gzerror;
+ gzflush;
+ gzgetc;
+ gzgets;
+ gzoffset64;
+ gzopen64;
+ gzprintf;
+ gzputc;
+ gzputs;
+ gzread;
+ gzrewind;
+ gzseek64;
+ gzsetparams;
+ gztell64;
+ gzungetc;
+ gzwrite;
+ inflate;
+ inflateBack;
+ inflateBackEnd;
+ inflateBackInit_;
+ inflateCopy;
+ inflateEnd;
+ inflateGetHeader;
+ inflateInit2_;
+ inflateInit_;
+ inflateMark;
+ inflatePrime;
+ inflateReset;
+ inflateReset2;
+ inflateSetDictionary;
+ inflateSync;
+ inflateSyncPoint;
+ inflateUndermine;
+ uncompress;
+ zError;
+ zlibCompileFlags;
+ zlibVersion;
+};
+
+FBSD_1.2 {
+ zopen;
+};
+
+ZLIBprivate_1.0 {
+ _tr_align;
+ _tr_flush_block;
+ _tr_init;
+ _tr_stored_block;
+ _tr_tally;
+ adler32_combine;
+ crc32_combine;
+ gz_error;
+ gzoffset;
+ gzopen;
+ gzseek;
+ gztell;
+ inflate_fast;
+ inflate_table;
+ longest_match;
+ match_init;
+ zcalloc;
+ zcfree;
+};
diff --git a/Versions.def b/Versions.def
new file mode 100644
index 0000000..fe413a4
--- /dev/null
+++ b/Versions.def
@@ -0,0 +1,11 @@
+# $FreeBSD$
+
+ZLIB_1.2.4.0 {
+};
+
+FBSD_1.2 {
+} ZLIB_1.2.4.0;
+
+ZLIBprivate_1.0 {
+} ZLIB_1.2.4.0;
+
OpenPOWER on IntegriCloud