THRIFT-1381 Thrift C++ libs have incorrectly versioned names
Patch: Jake Farrell
git-svn-id: https://svn.apache.org/repos/asf/thrift/trunk@1182052 13f79535-47bb-0310-9956-ffa450edef68
diff --git a/lib/cpp/Makefile.am b/lib/cpp/Makefile.am
index 593ef9e..f48aed2 100644
--- a/lib/cpp/Makefile.am
+++ b/lib/cpp/Makefile.am
@@ -27,6 +27,7 @@
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 @@
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