diff options
author | unknown <mtaylor@qualinost.(none)> | 2007-01-18 16:21:43 -0800 |
---|---|---|
committer | unknown <mtaylor@qualinost.(none)> | 2007-01-18 16:21:43 -0800 |
commit | 8f16a2555651b4d29eafe094cb6f36ea8803896d (patch) | |
tree | 85a9a032a9d5f236170b2fea47e354785a6e06e5 | |
parent | af3d6c48fb7488ff247853e87d3772070bb536ca (diff) | |
download | mariadb-git-8f16a2555651b4d29eafe094cb6f36ea8803896d.tar.gz |
Added version script information to actually version the symbols.
ndb/src/libndb.ver.in:
BitKeeper file /home/mtaylor/src/mysql-4.1-maint/ndb/src/libndb.ver.in
-rw-r--r-- | configure.in | 9 | ||||
-rw-r--r-- | ndb/src/Makefile.am | 2 | ||||
-rw-r--r-- | ndb/src/libndb.ver.in | 2 |
3 files changed, 12 insertions, 1 deletions
diff --git a/configure.in b/configure.in index e85b8e795ba..47965876627 100644 --- a/configure.in +++ b/configure.in @@ -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 diff --git a/ndb/src/Makefile.am b/ndb/src/Makefile.am index ffa45e57196..056bb5a1734 100644 --- a/ndb/src/Makefile.am +++ b/ndb/src/Makefile.am @@ -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 \ diff --git a/ndb/src/libndb.ver.in b/ndb/src/libndb.ver.in new file mode 100644 index 00000000000..72bf93d196f --- /dev/null +++ b/ndb/src/libndb.ver.in @@ -0,0 +1,2 @@ +libndbclient_@NDB_SHARED_LIB_MAJOR_VERSION@ { global: *; }; + |