--with-mysql using 8.x depends on openssl and breaks Mac OS build
mysql_config
Usage: /usr/local/bin/mysql_config [OPTIONS]
Compiler: Clang 10.0.0.10001145
Options:
--cflags [-I/usr/local/Cellar/mysql/8.0.15/include/mysql ]
--cxxflags [-I/usr/local/Cellar/mysql/8.0.15/include/mysql ]
--include [-I/usr/local/Cellar/mysql/8.0.15/include/mysql]
--libs [-L/usr/local/Cellar/mysql/8.0.15/lib -lmysqlclient -lssl -lcrypto]
--libs_r [-L/usr/local/Cellar/mysql/8.0.15/lib -lmysqlclient -lssl -lcrypto]
--plugindir [/usr/local/Cellar/mysql/8.0.15/lib/plugin]
--socket [/tmp/mysql.sock]
--port [0]
--version [8.0.15]
--variable=VAR VAR is one of:
pkgincludedir [/usr/local/Cellar/mysql/8.0.15/include/mysql]
pkglibdir [/usr/local/Cellar/mysql/8.0.15/lib]
plugindir [/usr/local/Cellar/mysql/8.0.15/lib/plugin]
libmysqlclient depends on -lssl -lcrypto which are not added as dependencies in configure.ac
the fix is simple:
--- a/configure.ac
+++ b/configure.ac
@@ -709,7 +709,8 @@ if test "$MYSQL_CONFIG" != "" ; then
LIBS_SAVED="$LIBS"
CPPFLAGS="$MYSQL_CPPFLAGS $CPPFLAGS"
- LIBS="$MYSQL_LIBS $LIBS"
+ LIBS="$MYSQL_LIBS $LIBS $CRYPTO_LIBS"
AC_LINK_IFELSE(
[AC_LANG_PROGRAM([#include <mysql.h>],
Edited by Razvan Becheriu