mirror of
https://github.com/MariaDB/server.git
synced 2025-01-16 03:52:35 +01:00
05fe3f1c18
1. it links with ${SSL_LIBRARIES}, in WolfSSL builds it's a static library, so when a plugin is loaded there will be two copies of wolfssl in the same address space. It breaks odr (at least). 2. Plugin can linked with OpenSSL and the server with WolfSSL or vice versa. It might load, but then we'll have both WolfSSL and OpenSSL at the same time. Kind of risky. Fix: link the plugin statically into the server if it's a WolfSSL build adjust tests to work with static and dynamic parsec
9 lines
274 B
CMake
9 lines
274 B
CMake
IF (HAVE_evp_pkey)
|
|
ADD_DEFINITIONS(${SSL_DEFINES})
|
|
IF(WITH_SSL STREQUAL "bundled")
|
|
MYSQL_ADD_PLUGIN(auth_parsec server_parsec.cc STATIC_ONLY DEFAULT)
|
|
ELSE()
|
|
MYSQL_ADD_PLUGIN(auth_parsec server_parsec.cc
|
|
LINK_LIBRARIES ${SSL_LIBRARIES})
|
|
ENDIF()
|
|
ENDIF()
|