Enable linker versioning
Reported-by: Ian Stakenvicius Signed-off-by: Thomas Graf <tgraf@suug.ch>
This commit is contained in:
parent
8443c7e9f1
commit
0eb665c693
4 changed files with 8 additions and 2 deletions
2
.gitignore
vendored
2
.gitignore
vendored
|
@ -22,4 +22,4 @@ cscope.*
|
|||
/configure
|
||||
/libtool
|
||||
/*.pc
|
||||
|
||||
/libnl.sym
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -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
|
||||
|
|
4
libnl.sym.in
Normal file
4
libnl.sym.in
Normal file
|
@ -0,0 +1,4 @@
|
|||
libnl_@MAJ_VERSION@ {
|
||||
global:
|
||||
*;
|
||||
};
|
Loading…
Add table
Reference in a new issue