From: Debian Cyrus SASL Team
<pkg-cyrus-sasl2-debian-devel@lists.alioth.debian.org>
Date: Thu, 24 Mar 2016 11:35:02 +0100
Subject: Make the libsasl2 symbols versioned
---
Versions | 7 +++++++
lib/Makefile.am | 3 ++-
2 files changed, 9 insertions(+), 1 deletion(-)
create mode 100644 Versions
diff --git a/Versions b/Versions
new file mode 100644
index 0000000..f803d00
--- /dev/null
+++ b/Versions
@@ -0,0 +1,7 @@
+SASL2 {
+ global:
+ sasl_*; prop_*; auxprop_plugin_info; _sasl_MD5*;
+};
+
+HIDDEN { local: __*; _rest*; _save*; *; };
+
diff --git a/lib/Makefile.am b/lib/Makefile.am
index 72ada6d..c2dfbf7 100644
--- a/lib/Makefile.am
+++ b/lib/Makefile.am
@@ -79,7 +79,8 @@ libobj_la_SOURCES =
libobj_la_LIBADD = $(LTLIBOBJS)
libsasl2_la_SOURCES = $(common_sources) $(common_headers)
-libsasl2_la_LDFLAGS = -version-info $(sasl_version) -no-undefined
+libsasl2_la_LDFLAGS = -version-info $(sasl_version) -no-undefined -Wl,--version-script=$(top_srcdir)/Versions
+libsasl2_la_DEPENDENCIES = $(LTLIBOBJS) $(top_srcdir)/Versions
libsasl2_la_LIBADD = $(SASL_DL_LIB) $(SASL_STATIC_LIBS) $(LIB_SOCKET) $(LIB_DOOR) $(PLUGIN_COMMON_OBJS)
if BUILD_LIBOBJ