Description: stop linking against libmysqlclient_r and link directly against libmysqlclient instead
 Quoting from Debian's bugreport #825086:
 .
  Your package currently links against libmysqlclient_r. libmysqlclient_r
 was the thread-safe version of libmysqlclient in previous MySQL
 releases. However, libmysqlclient has been itself been made thread-safe
 since before the current libmysqlclient18. Thus libmysqlclient_r is
 currently deprecated and provided as a compatibility symlink only, and
 will disappear in MySQL 5.7. This change can be made now, in advance of
 a possible future transition to libmysqlclient20, which does not provide
 the _r variant.
 .
 In Ubuntu, we have done this with the attached quilt patch, which I
 believe is also applicable to Debian.
Author:  Robie Basak <robie.basak@ubuntu.com>

---
Bug-Debian: https://bugs.debian.org/825086
Forwarded: not-needed
Last-Update: 2016-11-23

--- mysql++-3.2.2+pristine.orig/config/mysql_loc.m4
+++ mysql++-3.2.2+pristine/config/mysql_loc.m4
@@ -35,7 +35,7 @@ AC_DEFUN([MYSQL_C_API_LOCATION],
 	#
 	if test "x$acx_pthread_ok" = xyes
 	then
-		MYSQL_C_LIB_NAME=mysqlclient_r
+		MYSQL_C_LIB_NAME=mysqlclient
 	else
 		MYSQL_C_LIB_NAME=mysqlclient
 	fi
--- mysql++-3.2.2+pristine.orig/configure
+++ mysql++-3.2.2+pristine/configure
@@ -12195,7 +12195,7 @@ fi
 	#
 	if test "x$acx_pthread_ok" = xyes
 	then
-		MYSQL_C_LIB_NAME=mysqlclient_r
+		MYSQL_C_LIB_NAME=mysqlclient
 	else
 		MYSQL_C_LIB_NAME=mysqlclient
 	fi
