9c7c797
The symbol versioning solution for libmysqlclient in mysql 5.1 was pretty
9c7c797
awful (export everything) and as of 5.5.8 the cmake build scripts have
9c7c797
forgotten the issue entirely.  So we now maintain our own list of exported
9c7c797
symbols and jam it into the build with this hack.
9c7c797
9c7c797
b995ae2
diff -up mariadb-5.5.29/libmysql/CMakeLists.txt.p5 mariadb-5.5.29/libmysql/CMakeLists.txt
b995ae2
--- mariadb-5.5.29/libmysql/CMakeLists.txt.p5	2013-01-29 15:12:46.000000000 +0100
b995ae2
+++ mariadb-5.5.29/libmysql/CMakeLists.txt	2013-02-01 10:44:28.449544405 +0100
b995ae2
@@ -363,7 +363,7 @@ IF(NOT DISABLE_SHARED)
9c7c797
         SET(libmysql_link_flags)
9c7c797
       ENDIF()
9c7c797
       SET_TARGET_PROPERTIES(libmysql PROPERTIES LINK_FLAGS 
b995ae2
-        "${libmysql_link_flags} ${LINK_FLAG_NO_UNDEFINED} ${VERSION_SCRIPT_LINK_FLAGS}")
9c7c797
+        "${libmysql_link_flags} -Wl,--version-script=libmysql.version ${LINK_FLAG_NO_UNDEFINED}")
9c7c797
     ENDIF() 
9c7c797
     # clean direct output needs to be set several targets have the same name
9c7c797
     #(mysqlclient in this case)