diff options
author | Vladislav Vaintroub <wlad@mariadb.com> | 2019-06-29 15:28:20 +0300 |
---|---|---|
committer | Sergei Krivonos <sergeikrivonos@gmail.com> | 2021-11-09 12:06:49 +0200 |
commit | e45f7f485a4c8133962a4082636412745ed07093 (patch) | |
tree | 0db604740eb97a1fc4c4a55e57688b38593b3ec0 /cmake | |
parent | 1a3570dec35733e725cc6000a06ec666facf4235 (diff) | |
download | mariadb-git-e45f7f485a4c8133962a4082636412745ed07093.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 e7e9d2a3642..5d94e2607f8 100644 --- a/cmake/plugin.cmake +++ b/cmake/plugin.cmake @@ -30,7 +30,7 @@ INCLUDE(CMakeParseArguments) MACRO(MYSQL_ADD_PLUGIN) CMAKE_PARSE_ARGUMENTS(ARG - "STORAGE_ENGINE;STATIC_ONLY;MODULE_ONLY;MANDATORY;DEFAULT;DISABLED;RECOMPILE_FOR_EMBEDDED;CLIENT" + "STORAGE_ENGINE;STATIC_ONLY;MODULE_ONLY;MANDATORY;DEFAULT;DISABLED;RECOMPILE_FOR_EMBEDDED;CLIENT;EXPORT_SYMBOLS" "MODULE_OUTPUT_NAME;STATIC_OUTPUT_NAME;COMPONENT;CONFIG" "LINK_LIBRARIES;DEPENDS" ${ARGN} @@ -139,7 +139,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) # Embedded library should contain PIC code and be linkable # to shared libraries (on systems that need PIC) |