Package: cyrus-sasl2 / 2.1.27+dfsg-1

0001-Make-the-libsasl2-symbols-versioned.patch Patch series | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
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