mariadb has patches (patch-client_CMakeLists_txt, patch-tests_CMakeLists_txt) to avoid dynamically linking the client programs (otherwise they're 3+MB each, compare e.g. mysql_waitpid where this hasn't been done with /usr/local/bin/mysql).
However this avoids -lssl -lcrypto on the linker command lines, which breaks things with LLD. Does anyone know how to fix it to avoid static linking while adding the SSL libs?
