summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorThomas Graf <tgraf@suug.ch>2013-08-07 12:51:03 (GMT)
committerThomas Graf <tgraf@suug.ch>2013-08-07 12:51:03 (GMT)
commit0eb665c693ab2673b722ffd75df744f75fb7e2fe (patch)
tree511486a0ef92aeca683f78af9de021be379ab56e
parent8443c7e9f130cfea1c1d3db8b61e20c547e8da07 (diff)
downloadlibnl-0eb665c693ab2673b722ffd75df744f75fb7e2fe.zip
libnl-0eb665c693ab2673b722ffd75df744f75fb7e2fe.tar.gz
libnl-0eb665c693ab2673b722ffd75df744f75fb7e2fe.tar.bz2
Enable linker versioning
Reported-by: Ian Stakenvicius Signed-off-by: Thomas Graf <tgraf@suug.ch>
-rw-r--r--.gitignore2
-rw-r--r--configure.ac1
-rw-r--r--lib/Makefile.am3
-rw-r--r--libnl.sym.in4
4 files changed, 8 insertions, 2 deletions
diff --git a/.gitignore b/.gitignore
index f9fe4bd..bea9317 100644
--- a/.gitignore
+++ b/.gitignore
@@ -22,4 +22,4 @@ cscope.*
/configure
/libtool
/*.pc
-
+/libnl.sym
diff --git a/configure.ac b/configure.ac
index 46b216b..eac635c 100644
--- a/configure.ac
+++ b/configure.ac
@@ -118,6 +118,7 @@ AC_CONFIG_SUBDIRS([doc])
AC_CONFIG_FILES([
Makefile
+libnl.sym
libnl-3.0.pc
libnl-route-3.0.pc
libnl-genl-3.0.pc
diff --git a/lib/Makefile.am b/lib/Makefile.am
index def16ba..697683f 100644
--- a/lib/Makefile.am
+++ b/lib/Makefile.am
@@ -10,7 +10,8 @@ AM_CPPFLAGS = \
-DSYSCONFDIR=\"$(sysconfdir)/libnl\"
AM_LDFLAGS = \
- -version-info $(LT_CURRENT):$(LT_REVISION):$(LT_AGE)
+ -version-info $(LT_CURRENT):$(LT_REVISION):$(LT_AGE) \
+ -Wl,--version-script=$(top_srcdir)/libnl.sym
lib_LTLIBRARIES = \
libnl-3.la libnl-genl-3.la libnl-route-3.la libnl-nf-3.la libnl-idiag-3.la
diff --git a/libnl.sym.in b/libnl.sym.in
new file mode 100644
index 0000000..e8f6c53
--- /dev/null
+++ b/libnl.sym.in
@@ -0,0 +1,4 @@
+libnl_@MAJ_VERSION@ {
+global:
+ *;
+};