Codebase list cyrus-sasl2 / 0fafc25d-8c03-4ca6-9adb-9eeb4c06944b/main debian / patches / 0001-Make-the-libsasl2-symbols-versioned.patch
0fafc25d-8c03-4ca6-9adb-9eeb4c06944b/main

Tree @0fafc25d-8c03-4ca6-9adb-9eeb4c06944b/main (Download .tar.gz)

0001-Make-the-libsasl2-symbols-versioned.patch @0fafc25d-8c03-4ca6-9adb-9eeb4c06944b/mainraw · history · blame

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) $(LIB_SOCKET) $(LIB_DOOR) $(PLUGIN_COMMON_OBJS)
 if BUILD_LIBOBJ