]> granicus.if.org Git - libnl/commitdiff
Enable linker versioning
authorThomas Graf <tgraf@suug.ch>
Wed, 7 Aug 2013 12:51:03 +0000 (14:51 +0200)
committerThomas Graf <tgraf@suug.ch>
Wed, 7 Aug 2013 12:51:03 +0000 (14:51 +0200)
Reported-by: Ian Stakenvicius
Signed-off-by: Thomas Graf <tgraf@suug.ch>
.gitignore
configure.ac
lib/Makefile.am
libnl.sym.in [new file with mode: 0644]

index f9fe4bdf61693a3ded93adc1f6877b8c1b0e29b1..bea9317fd8973d13038308d1ab300e13b6a2b8d8 100644 (file)
@@ -22,4 +22,4 @@ cscope.*
 /configure
 /libtool
 /*.pc
-
+/libnl.sym
index 46b216bc7c976f7c390b6099cd70f2921ad3651a..eac635ccfdc1e690357ba20f7d0d3899357acd5e 100644 (file)
@@ -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
index def16ba1bd7f4d0159f4b4e138aba8c42815ac38..697683f75dd4573550b852367213fba0bfaa3f33 100644 (file)
@@ -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 (file)
index 0000000..e8f6c53
--- /dev/null
@@ -0,0 +1,4 @@
+libnl_@MAJ_VERSION@ {
+global:
+       *;
+};