Add versioning to libmemcachedutil.
authorMonty Taylor <mordred@inaugust.com>
Wed, 20 May 2009 18:34:05 +0000 (11:34 -0700)
committerMonty Taylor <mordred@inaugust.com>
Wed, 20 May 2009 18:34:05 +0000 (11:34 -0700)
configure.ac
libmemcachedutil/Makefile.am
libmemcachedutil/libmemcachedutil.ver [new file with mode: 0644]

index 2bea7797fb0be9d4cba618beb1a0a6e2c234dc71..7c541b242dfbb94f30326c7734b18e81c00f9af5 100644 (file)
@@ -27,6 +27,8 @@ MEMCACHED_LIBRARY_VERSION=2:0:0
 #                  |           set to zero if current is incremented
 #                  +- increment if interfaces have been added, removed or changed
 AC_SUBST(MEMCACHED_LIBRARY_VERSION)
+MEMCACHEDUTIL_LIBRARY_VERSION=0:0:0
+AC_SUBST(MEMCACHEDUTIL_LIBRARY_VERSION)
 
 AM_INIT_AUTOMAKE(nostdinc no-define -Wall -Werror)
 AC_USE_SYSTEM_EXTENSIONS
@@ -39,12 +41,15 @@ AM_SANITY_CHECK
 LIBTOOL="$LIBTOOL --preserve-dup-deps"
 AC_SUBST(LIBTOOL)dnl
 
+
 # libmemcached versioning when linked with GNU ld.
 if test "$lt_cv_prog_gnu_ld" = "yes"
 then
     LD_VERSION_SCRIPT="-Wl,--version-script=\$(top_srcdir)/libmemcached/libmemcached.ver"
+    LD_UTIL_VERSION_SCRIPT="-Wl,--version-script=\$(top_srcdir)/libmemcachedutil/libmemcachedutil.ver"
 fi
 AC_SUBST(LD_VERSION_SCRIPT)
+AC_SUBST(LD_UTIL_VERSION_SCRIPT)
 
 AC_C_CONST
 AC_HEADER_TIME
index 852dc5dc99d7c91b39b4b761a121469b939e948b..bbb94ddd76de9c0ef2570a5f528f978147720e77 100644 (file)
@@ -1,8 +1,11 @@
-LIBS = @LIBS@
+EXTRA_DIST= libmemcachedutil.ver
 
 lib_LTLIBRARIES=
+
 if BUILD_LIBMEMCACHEDUTIL
 lib_LTLIBRARIES+= libmemcachedutil.la
 endif
 
 libmemcachedutil_la_SOURCES= memcached_pool.c
+libmemcachedutil_la_LDFLAGS= -version-info $(MEMCACHEDUTIL_LIBRARY_VERSION) $(LD_UTIL_VERSION_SCRIPT)
+libmemcachedutil_la_LIBADD= ${top_builddir}/libmemcached/libmemcached.la
diff --git a/libmemcachedutil/libmemcachedutil.ver b/libmemcachedutil/libmemcachedutil.ver
new file mode 100644 (file)
index 0000000..1a6d501
--- /dev/null
@@ -0,0 +1 @@
+libmemcachedutil_0 { global: *; };