Details
-
Bug
-
Status: Closed (View Workflow)
-
Major
-
Resolution: Fixed
-
10.2.6
-
None
-
macOS 10.12.5, Homebrew
Description
Hello!
There is a discrepancy between the link options provided by mysql_config and mariadb_config. Please see the relevant outputs (options --libs and --libs_r) below.
I would expect for mysql_config to also output the missing link libraries. Otherwise it is breaking out-of-the-box compatibility to MySQL as one is required to add the missing link dependencies by hand.
$ mariadb_config
|
Copyright 2011-2015 MariaDB Corporation AB
|
Get compiler flags for using the MariaDB Connector/C.
|
Usage: mariadb_config [OPTIONS]
|
--cflags [-I/usr/local/Cellar/mariadb/10.2.6/include/mysql -I/usr/local/Cellar/mariadb/10.2.6/include/mysql/mysql]
|
--include [-I/usr/local/Cellar/mariadb/10.2.6/include/mysql -I/usr/local/Cellar/mariadb/10.2.6/include/mysql/mysql]
|
--libs [-L/usr/local/Cellar/mariadb/10.2.6/lib/ -lmariadb -lpthread -ldl -lm -l/usr/lib/libiconv.dylib -l/usr/local/opt/openssl/lib/libssl.dylib -l/usr/local/opt/openssl/lib/libcrypto.dylib /usr/lib/libiconv.dylib]
|
--libs_r [-L/usr/local/Cellar/mariadb/10.2.6/lib/ -lmariadb -lpthread -ldl -lm -l/usr/lib/libiconv.dylib -l/usr/local/opt/openssl/lib/libssl.dylib -l/usr/local/opt/openssl/lib/libcrypto.dylib /usr/lib/libiconv.dylib]
|
--libs_sys [-lpthread -ldl -lm -l/usr/lib/libiconv.dylib -l/usr/local/opt/openssl/lib/libssl.dylib -l/usr/local/opt/openssl/lib/libcrypto.dylib /usr/lib/libiconv.dylib]
|
--version [10.2.5]
|
--socket [/tmp/mysql.sock]
|
--port [3306]
|
--plugindir [/usr/local/Cellar/mariadb/10.2.6/lib/plugin]
|
--tlsinfo [OpenSSL 1.0.2k]
|
$ mysql_config
|
Usage: /usr/local/bin/mysql_config [OPTIONS]
|
Options:
|
--cflags [-I/usr/local/Cellar/mariadb/10.2.6/include/mysql -I/usr/local/Cellar/mariadb/10.2.6/include/mysql/.. ]
|
--include [-I/usr/local/Cellar/mariadb/10.2.6/include/mysql -I/usr/local/Cellar/mariadb/10.2.6/include/mysql/..]
|
--libs [-L/usr/local/Cellar/mariadb/10.2.6/lib -lmariadb]
|
--libs_r [-L/usr/local/Cellar/mariadb/10.2.6/lib -lmariadb]
|
--plugindir [/usr/local/Cellar/mariadb/10.2.6/lib/plugin]
|
--socket [/tmp/mysql.sock]
|
--port [0]
|
--version [10.2.6]
|
--libmysqld-libs [-L/usr/local/Cellar/mariadb/10.2.6/lib -lmysqld]
|
--variable=VAR VAR is one of:
|
pkgincludedir [/usr/local/Cellar/mariadb/10.2.6/include/mysql]
|
pkglibdir [/usr/local/Cellar/mariadb/10.2.6/lib]
|
plugindir [/usr/local/Cellar/mariadb/10.2.6/lib/plugin]
|
Thank you.