If server package was built with embedded server and MariaDB
Connector/C was built as subproject in server package mariadb_config
will display link option for embedded server.
mariadb_get_install_location(): Ensure that the string will be
terminated by a NUL byte, to avoid potential stack overrun
in strstr().
This regression was introduced in
commit 448514a1ad.
1) mariadb_config now tries to determine the path from which it was started, in following order:
- if environment variable MARIADB_CONFIG was set
- use system call(s) to determine the path
- if the previous mentioned attemps where unsuccessful, build option CMAKE_INSTALL_PREFIX will be used
2) Added support variables pkglibdir, pkgincludedir and pkgplugindr.
3) Adjusted server version for C/C standalone builds to 10.5.5
When cross-compiling MariaDB, system paths are returned by the mysql-config
and mariadb-config tools. Add @CMAKE_SYSROOT@ to the paths to avoid this
issue.
Signed-off-by: Ryan Coe <bluemrp9@gmail.com>
Connector/C now provides additional information for package version
mariadb_config --cc_version lists the package version
Beside MARIADB_PACKAGE_VERSION numeric representation MARIADB_PACKAGE_VERSION_ID can be used now within preprocessor directives
or INSTALL_DOCDIR
Changed C/C to use the same cmake variables for
INSTALL_LIBDIR, INSTALL_BINDIR, INSTALL_INCLUDEDIR, INSTALL_PLUGINDIR
Small cleanups (remove -l/full/path/to/libc.so from mariadb_config output)
to load plugins from a different destination than PLUGINDIR.
- added dialog plugin for authentication (e.g. PAM). If an application provides
it's own dialog function, the name must be mariadb_auth_dialog (or for libmysql
compatibility mysql_authentication_dialog_ask).
Windows-Todo:
1. provide a simple GUI dialog on windows, in case opening the console failed.
2. convert data from console code page to character set of current connection
Cmake now supports the following options:
-DINSTALL_LAYOUT=DEFAULT or RPM
-DINSTALL_LIB_DIR
-DINSTALL_INCLUDE_DIR
-DINSTALL_DOCS_DIR
-DINSTALL_PLUGINS_DIR
-DINSTALL_BIN_DIR