From 354373661265494684420cb980028b41e70c6cc2 Mon Sep 17 00:00:00 2001 From: phk Date: Tue, 17 May 2011 17:37:58 +0000 Subject: [PATCH] Bump shlib version Instigate symbol versioning Pray that I don't break the build. --- lib/libsbuf/Makefile | 11 ++++++++--- lib/libsbuf/Symbol.map | 24 ++++++++++++++++++++++++ lib/libsbuf/Version.def | 6 ++++++ 3 files changed, 38 insertions(+), 3 deletions(-) create mode 100644 lib/libsbuf/Symbol.map create mode 100644 lib/libsbuf/Version.def diff --git a/lib/libsbuf/Makefile b/lib/libsbuf/Makefile index 5d96c0e983e6..79d3fe973e05 100644 --- a/lib/libsbuf/Makefile +++ b/lib/libsbuf/Makefile @@ -1,8 +1,13 @@ # $FreeBSD$ -LIB= sbuf -SHLIBDIR?= /lib -SRCS= subr_sbuf.c +LIB= sbuf +SHLIBDIR?= /lib +SRCS= subr_sbuf.c + +SHLIB_MAJOR = 6 + +SYMBOL_MAPS= ${.CURDIR}/Symbol.map +VERSION_DEF= ${.CURDIR}/Version.def .PATH: ${.CURDIR}/../../sys/kern diff --git a/lib/libsbuf/Symbol.map b/lib/libsbuf/Symbol.map new file mode 100644 index 000000000000..75af55838871 --- /dev/null +++ b/lib/libsbuf/Symbol.map @@ -0,0 +1,24 @@ +/* + * $FreeBSD$ + */ + +FBSD_1.2 { + sbuf_new; + sbuf_clear; + sbuf_setpos; + sbuf_bcat; + sbuf_bcpy; + sbuf_cat; + sbuf_cpy; + sbuf_printf; + sbuf_vprintf; + sbuf_putc; + sbuf_set_drain; + sbuf_trim; + sbuf_error; + sbuf_finish; + sbuf_data; + sbuf_len; + sbuf_done; + sbuf_delete; +}; diff --git a/lib/libsbuf/Version.def b/lib/libsbuf/Version.def new file mode 100644 index 000000000000..cf8a7d41d29b --- /dev/null +++ b/lib/libsbuf/Version.def @@ -0,0 +1,6 @@ +/* + * $FreeBSD$ + */ + +FBSD_1.2 { +};