diff options
author | Vladislav Vaintroub <wlad@mariadb.com> | 2019-06-29 15:28:20 +0300 |
---|---|---|
committer | Sergei Krivonos <sergei.krivonos@mariadb.com> | 2021-11-09 17:04:49 +0200 |
commit | c1e1ca20f48b30c8a754bd42274385065d89060e (patch) | |
tree | bfdee17c8b191d96966d5dd8572fa0c281b6a001 /cmake | |
parent | 009f3e06f3e74303559df59db404b300a12241d3 (diff) | |
download | mariadb-git-c1e1ca20f48b30c8a754bd42274385065d89060e.tar.gz |
In case WITH_WSREP is enabled, build wsrep as plugin
If it is not enabled, build wsrep as static "stub" library from wsrep_dummy.cc
ยด
Allow static plugins to export symbols (on Unix)
wsrep_info relies on wsrep defined symbols (e.g LOCK_wsrep_config_state)
exported from mysqld
Diffstat (limited to 'cmake')
-rw-r--r-- | cmake/plugin.cmake | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/cmake/plugin.cmake b/cmake/plugin.cmake index e63d7ae7b00..008ac9e9471 100644 --- a/cmake/plugin.cmake +++ b/cmake/plugin.cmake @@ -31,7 +31,7 @@ INCLUDE(CMakeParseArguments) MACRO(MYSQL_ADD_PLUGIN) CMAKE_PARSE_ARGUMENTS(ARG - "STORAGE_ENGINE;STATIC_ONLY;MODULE_ONLY;MANDATORY;DEFAULT;DISABLED;NOT_EMBEDDED;RECOMPILE_FOR_EMBEDDED;CLIENT" + "STORAGE_ENGINE;STATIC_ONLY;MODULE_ONLY;MANDATORY;DEFAULT;DISABLED;NOT_EMBEDDED;RECOMPILE_FOR_EMBEDDED;CLIENT;EXPORT_SYMBOLS" "MODULE_OUTPUT_NAME;STATIC_OUTPUT_NAME;COMPONENT;CONFIG" "LINK_LIBRARIES;DEPENDS" ${ARGN} @@ -140,7 +140,9 @@ MACRO(MYSQL_ADD_PLUGIN) ADD_LIBRARY(${target} STATIC ${SOURCES}) DTRACE_INSTRUMENT(${target}) ADD_DEPENDENCIES(${target} GenError ${ARG_DEPENDS}) - RESTRICT_SYMBOL_EXPORTS(${target}) + IF(NOT ARG_EXPORT_SYMBOLS) + RESTRICT_SYMBOL_EXPORTS(${target}) + ENDIF() IF(WITH_EMBEDDED_SERVER AND (NOT ARG_NOT_EMBEDDED)) # Embedded library should contain PIC code and be linkable # to shared libraries (on systems that need PIC) |