Blame SOURCES/myodbc-libname.patch

cfa79d
We use only mysqlclient library, but upstream still tends to use mysqlclient_r,
cfa79d
so we need to change the library we link against.
cfa79d
cfa79d
diff -up mysql-connector-odbc-5.2.4-src/cmake/FindMySQL.cmake.p1 mysql-connector-odbc-5.2.4-src/cmake/FindMySQL.cmake
cfa79d
--- mysql-connector-odbc-5.2.4-src/cmake/FindMySQL.cmake.p1	2013-01-24 18:43:33.000000000 +0100
cfa79d
+++ mysql-connector-odbc-5.2.4-src/cmake/FindMySQL.cmake	2013-02-25 16:30:07.458164848 +0100
cfa79d
@@ -64,7 +64,7 @@ IF (WIN32)
cfa79d
 				 $ENV{ProgramFiles}/MySQL/*/lib
cfa79d
 				 $ENV{SystemDrive}/MySQL/*/lib/${libsuffixDist})
cfa79d
 ELSE (WIN32)
cfa79d
-	FIND_LIBRARY(MYSQL_LIB NAMES mysqlclient_r
cfa79d
+	FIND_LIBRARY(MYSQL_LIB NAMES mysqlclient
cfa79d
 				 PATHS
cfa79d
 				 $ENV{MYSQL_DIR}/libmysql_r/.libs
cfa79d
 				 $ENV{MYSQL_DIR}/lib
cfa79d
@@ -93,7 +93,7 @@ IF (MYSQL_INCLUDE_DIR AND MYSQL_LIB_DIR)
cfa79d
 	IF (WIN32)
cfa79d
 		SET(MYSQL_CLIENT_LIBS mysqlclient)
cfa79d
 	ELSE (WIN32)
cfa79d
-		SET(MYSQL_CLIENT_LIBS mysqlclient_r)
cfa79d
+		SET(MYSQL_CLIENT_LIBS mysqlclient)
cfa79d
 	ENDIF (WIN32)
cfa79d
 	IF (MYSQL_ZLIB)
cfa79d
 		SET(MYSQL_CLIENT_LIBS ${MYSQL_CLIENT_LIBS} zlib)