Comment 19 for bug 747152

Revision history for this message
Raghavendra D Prabhu (raghavendra-prabhu) wrote :

The previous patch doesn't work because it breaks dialog.so

The problem is similar to described here:

http://www.cmake.org/pipermail/cmake/2011-February/042504.html
https://lists.gnu.org/archive/html/qemu-devel/2011-08/msg02987.html

probes_mysql.so gets introduced twice in the build command line for dialog.so
and needs to be trimmed to once. This is because when it is linked against mysqlclient, the dependencies of mysqlclient also get linked in TARGET_LINK_LIBRARIES which causes duplicate and hence the link failure.

In MariaDB code, they build dialog plugin separately and it is
a bit different (and built differently: there is no COMPONENT
SharedLibraries in plugin.cmake of PS) from dialog plugin in PS.