Skip to content
Permalink
Browse files

cannot link client_ed25519.so with a *static* libgnutls.a

because libmariadb.so is already linked with it, and two copies
of gnutls don't play nicely together. They share the state and
the second copy, when loaded, corrupts it.
  • Loading branch information...
vuvova committed Sep 3, 2019
1 parent 7de6395 commit 544b6f1d12f0e5b2a141129075ff2d64feb0e4c9
Showing with 3 additions and 1 deletion.
  1. +3 −1 plugins/auth/CMakeLists.txt
@@ -12,7 +12,9 @@ ELSEIF(WITH_SSL STREQUAL "OPENSSL")
SET(CRYPT_LIBS ${SSL_LIBRARIES})
ELSEIF(WITH_SSL STREQUAL "GNUTLS")
SET(CRYPT_SOURCE ${CC_SOURCE_DIR}/libmariadb/secure/gnutls_crypt.c)
SET(CRYPT_LIBS ${SSL_LIBRARIES} ${ZLIB_LIBRARY})
IF (NOT SSL_LIBRARIES MATCHES "^.*\\.a$")
SET(CRYPT_LIBS ${SSL_LIBRARIES})
ENDIF()
ELSE()
UNSET(CRYPTO_PLUGIN)
ENDIF()

0 comments on commit 544b6f1

Please sign in to comment.
You can’t perform that action at this time.