THRIFT-1381 Thrift C++ libs have incorrectly versioned names
authorRoger Meier <roger@apache.org>
Tue, 11 Oct 2011 19:48:57 +0000 (19:48 +0000)
committerRoger Meier <roger@apache.org>
Tue, 11 Oct 2011 19:48:57 +0000 (19:48 +0000)
Patch: Jake Farrell

git-svn-id: https://svn.apache.org/repos/asf/thrift/trunk@1182052 13f79535-47bb-0310-9956-ffa450edef68

lib/cpp/Makefile.am

index 593ef9e..f48aed2 100644 (file)
@@ -27,6 +27,7 @@ pkgconfigdir = $(libdir)/pkgconfig
 
 lib_LTLIBRARIES = libthrift.la
 pkgconfig_DATA = thrift.pc
+libthrift_la_LDFLAGS = -release $(VERSION)
 
 ## We only build the extra libraries if we have the dependencies,
 ## but we install all of the headers unconditionally.
@@ -99,6 +100,8 @@ libthriftnb_la_CPPFLAGS = $(AM_CPPFLAGS) $(LIBEVENT_CPPFLAGS)
 libthriftz_la_CPPFLAGS  = $(AM_CPPFLAGS) $(ZLIB_CPPFLAGS)
 libthriftnb_la_CXXFLAGS = $(AM_CXXFLAGS)
 libthriftz_la_CXXFLAGS  = $(AM_CXXFLAGS)
+libthriftnb_la_LDFLAGS  = -release $(VERSION)
+libthriftz_la_LDFLAGS   = -release $(VERSION)
 
 if WITH_BOOSTTHREADS
 libthrift_la_LIBADD = -lboost_thread