mariadb/plugin/auth_parsec/CMakeLists.txt
Sergei Golubchik 05fe3f1c18 Two problems with auth_parsec.so
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
2024-08-12 10:32:03 +02:00

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()