diff options
author | Thomas Graf <tgraf@suug.ch> | 2013-08-07 12:51:03 (GMT) |
---|---|---|
committer | Thomas Graf <tgraf@suug.ch> | 2013-08-07 12:51:03 (GMT) |
commit | 0eb665c693ab2673b722ffd75df744f75fb7e2fe (patch) | |
tree | 511486a0ef92aeca683f78af9de021be379ab56e | |
parent | 8443c7e9f130cfea1c1d3db8b61e20c547e8da07 (diff) | |
download | libnl-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-- | .gitignore | 2 | ||||
-rw-r--r-- | configure.ac | 1 | ||||
-rw-r--r-- | lib/Makefile.am | 3 | ||||
-rw-r--r-- | libnl.sym.in | 4 |
4 files changed, 8 insertions, 2 deletions
@@ -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: + *; +}; |