[PATCH 2/5] build: add linker scripts for libnl-cli-3.so library

Thomas Haller thaller at redhat.com
Sun Jan 4 08:24:37 PST 2015


libnl-cli-3.so was unversioned previously. This is an
ABI change (but backward compatible).

Signed-off-by: Thomas Haller <thaller at redhat.com>
---
 Makefile.am         | 1 +
 libnl-cli-3.sym     | 4 ++++
 src/lib/Makefile.am | 6 ++++++
 3 files changed, 11 insertions(+)
 create mode 100644 libnl-cli-3.sym

diff --git a/Makefile.am b/Makefile.am
index e48f1f8..61237dc 100644
--- a/Makefile.am
+++ b/Makefile.am
@@ -23,6 +23,7 @@ pkgsysconf_DATA = etc/pktloc etc/classid
 EXTRA_DIST = \
 	$(pkgsysconf_DATA) \
 	libnl-3.sym \
+	libnl-cli-3.sym \
 	libnl-genl-3.sym \
 	libnl-idiag-3.sym \
 	libnl-nf-3.sym \
diff --git a/libnl-cli-3.sym b/libnl-cli-3.sym
new file mode 100644
index 0000000..3532579
--- /dev/null
+++ b/libnl-cli-3.sym
@@ -0,0 +1,4 @@
+libnl_3 {
+global:
+	*;
+};
diff --git a/src/lib/Makefile.am b/src/lib/Makefile.am
index 27c74fd..d6f0d5b 100644
--- a/src/lib/Makefile.am
+++ b/src/lib/Makefile.am
@@ -41,6 +41,12 @@ NL_LIBADD = \
 lib_LTLIBRARIES = \
 	libnl-cli-3.la
 
+libnl_cli_3_la_LDFLAGS = \
+	-version-info $(LT_CURRENT):$(LT_REVISION):$(LT_AGE) \
+	-Wl,--version-script=$(top_builddir)/libnl-cli-3.sym
+libnl_cli_3_la_DEPENDENCIES = \
+	$(top_builddir)/libnl-cli-3.sym
+
 libnl_cli_3_la_LIBADD  = ${top_builddir}/lib/libnl-3.la \
 		       ${top_builddir}/lib/libnl-route-3.la \
 		       ${top_builddir}/lib/libnl-nf-3.la \
-- 
1.9.3




More information about the libnl mailing list