Use a version script to limit exported symbols
authorjca <jca@openbsd.org>
Tue, 26 Dec 2017 15:23:33 +0000 (15:23 +0000)
committerjca <jca@openbsd.org>
Tue, 26 Dec 2017 15:23:33 +0000 (15:23 +0000)
ok ratchov@ kettenis@

lib/libsndio/Makefile
lib/libsndio/shlib_version

index 8687256..05e69a3 100644 (file)
@@ -1,4 +1,4 @@
-#      $OpenBSD: Makefile,v 1.12 2016/03/30 06:38:43 jmc Exp $
+#      $OpenBSD: Makefile,v 1.13 2017/12/26 15:23:33 jca Exp $
 
 LIB=   sndio
 MAN=   sio_open.3 mio_open.3 sndio.7
@@ -7,4 +7,6 @@ SRCS=   debug.c aucat.c sio_aucat.c sio_sun.c sio.c \
 CFLAGS+=-DDEBUG
 COPTS+=        -Wall -Wstrict-prototypes -Wmissing-prototypes -Wpointer-arith -Wundef
 
+VERSION_SCRIPT=        ${.CURDIR}/Symbols.map
+
 .include <bsd.lib.mk>
index 1394f4e..5b844bb 100644 (file)
@@ -1,2 +1,2 @@
-major=6
-minor=1
+major=7
+minor=0