7a5573f
The symbol versioning solution for libmysqlclient in mysql 5.1 was pretty
7a5573f
awful (export everything) and as of 5.5.8 the cmake build scripts have
7a5573f
forgotten the issue entirely.  So we now maintain our own list of exported
7a5573f
symbols and jam it into the build with this hack.
7a5573f
7a5573f
7a5573f
diff -up mysql-5.5.28/libmysql/CMakeLists.txt.p7 mysql-5.5.28/libmysql/CMakeLists.txt
7a5573f
--- mysql-5.5.28/libmysql/CMakeLists.txt.p7	2012-08-29 10:50:46.000000000 +0200
7a5573f
+++ mysql-5.5.28/libmysql/CMakeLists.txt	2012-12-06 14:15:03.905461517 +0100
7a5573f
@@ -209,7 +209,7 @@ IF(NOT DISABLE_SHARED)
7a5573f
         SET(libmysql_link_flags)
7a5573f
       ENDIF()
7a5573f
       SET_TARGET_PROPERTIES(libmysql PROPERTIES LINK_FLAGS 
7a5573f
-        "${libmysql_link_flags} ${LINK_FLAG_NO_UNDEFINED}")
7a5573f
+        "${libmysql_link_flags} -Wl,--version-script=libmysql.version ${LINK_FLAG_NO_UNDEFINED}")
7a5573f
     ENDIF() 
7a5573f
     # clean direct output needs to be set several targets have the same name
7a5573f
     #(mysqlclient in this case)