From: Thomas Graf Date: Wed, 7 Aug 2013 12:51:03 +0000 (+0200) Subject: Enable linker versioning X-Git-Tag: libnl3_2_23rc1~26 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=0eb665c693ab2673b722ffd75df744f75fb7e2fe;p=libnl Enable linker versioning Reported-by: Ian Stakenvicius Signed-off-by: Thomas Graf --- 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: + *; +};