summaryrefslogtreecommitdiff
path: root/sql/CMakeLists.txt
diff options
context:
space:
mode:
authorSergei Golubchik <serg@mariadb.org>2020-11-26 17:30:00 +0100
committerSergei Golubchik <serg@mariadb.org>2020-12-21 14:04:32 +0100
commit6529cba2e2eb3afe239b9218bab817f049e6406e (patch)
tree674e85a5d42d59da9bfea70fa9dce13ef118c076 /sql/CMakeLists.txt
parent4fae7b7a3e8411f4b041e80a70ce9a65d187e338 (diff)
downloadmariadb-git-6529cba2e2eb3afe239b9218bab817f049e6406e.tar.gz
cleanup: plugin.cmake
list all supported options in the comment. remove wsrep-specific hack of EXPORT_SYMBOLS, wsrep-specific hacks belong to wsrep
Diffstat (limited to 'sql/CMakeLists.txt')
-rw-r--r--sql/CMakeLists.txt9
1 files changed, 8 insertions, 1 deletions
diff --git a/sql/CMakeLists.txt b/sql/CMakeLists.txt
index a63dc752d0e..b9cd418f295 100644
--- a/sql/CMakeLists.txt
+++ b/sql/CMakeLists.txt
@@ -36,7 +36,14 @@ IF(WITH_WSREP AND NOT EMBEDDED_LIBRARY)
wsrep_plugin.cc
service_wsrep.cc
)
- MYSQL_ADD_PLUGIN(wsrep ${WSREP_SOURCES} MANDATORY NOT_EMBEDDED EXPORT_SYMBOLS LINK_LIBRARIES wsrep-lib wsrep_api_v26)
+ MYSQL_ADD_PLUGIN(wsrep ${WSREP_SOURCES} MANDATORY NOT_EMBEDDED LINK_LIBRARIES wsrep-lib wsrep_api_v26)
+ IF(VISIBILITY_HIDDEN_FLAG AND TARGET wsrep)
+ # wsrep_info plugin needs some wsrep symbols from inside mysqld
+ # we have to remove -fvisibility=hidden from wsrep
+ GET_TARGET_PROPERTY(f wsrep COMPILE_FLAGS)
+ STRING(REPLACE "${VISIBILITY_HIDDEN_FLAG}" "" f ${f})
+ SET_TARGET_PROPERTIES(wsrep PROPERTIES COMPILE_FLAGS "${f}")
+ ENDIF()
ELSE()
ADD_LIBRARY(wsrep STATIC wsrep_dummy.cc)
ADD_DEPENDENCIES(wsrep GenError)