Blame SOURCES/mysql-versioning.patch

6f9931
The symbol versioning solution for libmysqlclient in mysql 5.1 was pretty
6f9931
awful (export everything) and as of 5.5.8 the cmake build scripts have
6f9931
forgotten the issue entirely.  So we now maintain our own list of exported
6f9931
symbols and jam it into the build with this hack.
6f9931
6f9931
6f9931
diff -Naur mysql-5.5.8.orig/libmysql/CMakeLists.txt mysql-5.5.8/libmysql/CMakeLists.txt
6f9931
--- mysql-5.5.8.orig/libmysql/CMakeLists.txt	2010-12-03 12:58:26.000000000 -0500
6f9931
+++ mysql-5.5.8/libmysql/CMakeLists.txt	2010-12-21 21:00:07.135311386 -0500
6f9931
@@ -197,7 +197,7 @@
6f9931
         SET(libmysql_link_flags)
6f9931
       ENDIF()
6f9931
       SET_TARGET_PROPERTIES(libmysql PROPERTIES LINK_FLAGS 
6f9931
-        "${libmysql_link_flags} ${LINK_FLAG_NO_UNDEFINED}")
6f9931
+        "${libmysql_link_flags} -Wl,--version-script=libmysql.version ${LINK_FLAG_NO_UNDEFINED}")
6f9931
     ENDIF() 
6f9931
     # clean direct output needs to be set several targets have the same name
6f9931
     #(mysqlclient in this case)