Added version script information to actually version the symbols.
This commit is contained in:
parent
7d2d130748
commit
fd75030f93
@ -449,6 +449,15 @@ if $LD --version 2>/dev/null|grep -q GNU; then
|
||||
fi
|
||||
AC_SUBST(LD_VERSION_SCRIPT)
|
||||
|
||||
# libndbclient versioning when linked with GNU ld.
|
||||
if $LD --version 2>/dev/null|grep -q GNU; then
|
||||
NDB_LD_VERSION_SCRIPT="-Wl,--version-script=\$(top_builddir)/ndb/src/libndb.ver"
|
||||
AC_CONFIG_FILES(ndb/src/libndb.ver)
|
||||
fi
|
||||
AC_SUBST(NDB_LD_VERSION_SCRIPT)
|
||||
|
||||
|
||||
|
||||
# Avoid bug in fcntl on some versions of linux
|
||||
AC_MSG_CHECKING([if we should use 'skip-external-locking' as default for $target_os])
|
||||
# Any wariation of Linux
|
||||
|
@ -6,7 +6,7 @@ ndblib_LTLIBRARIES = libndbclient.la
|
||||
|
||||
libndbclient_la_SOURCES =
|
||||
|
||||
libndbclient_la_LDFLAGS = -version-info @NDB_SHARED_LIB_VERSION@
|
||||
libndbclient_la_LDFLAGS = -version-info @NDB_SHARED_LIB_VERSION@ @NDB_LD_VERSION_SCRIPT@
|
||||
|
||||
libndbclient_la_LIBADD = \
|
||||
ndbapi/libndbapi.la \
|
||||
|
2
ndb/src/libndb.ver.in
Normal file
2
ndb/src/libndb.ver.in
Normal file
@ -0,0 +1,2 @@
|
||||
libndbclient_@NDB_SHARED_LIB_MAJOR_VERSION@ { global: *; };
|
||||
|
Loading…
x
Reference in New Issue
Block a user