- Add support for el7 (with systemd enabled)

- Enable shared libmysqld by cmake option
parent 7acdf29c
...@@ -28,8 +28,8 @@ IF(UNIX) ...@@ -28,8 +28,8 @@ IF(UNIX)
FOREACH(fedfile my.cnf my_config.h mysql_config.sh FOREACH(fedfile my.cnf my_config.h mysql_config.sh
mysqld.service mysql-systemd-start mysql.conf mysqld.service mysql-systemd-start mysql.conf
filter-requires.sh filter-provides.sh filter-requires.sh filter-provides.sh mysql.init
mysql-embedded-check.c mysql.init) mysql-5.5-libmysqlclient-symbols.patch)
CONFIGURE_FILE(${fedfile} ${CMAKE_CURRENT_BINARY_DIR}/${fedfile} COPYONLY) CONFIGURE_FILE(${fedfile} ${CMAKE_CURRENT_BINARY_DIR}/${fedfile} COPYONLY)
ENDFOREACH() ENDFOREACH()
ENDIF() ENDIF()
......
This diff is collapsed.
/* simple test program to see if we can link the embedded server library */
#include <stdio.h>
#include <stdlib.h>
#include <stdarg.h>
#include "mysql.h"
MYSQL *mysql;
static char *server_options[] = \
{ "mysql_test", "--defaults-file=my.cnf", NULL };
int num_elements = (sizeof(server_options) / sizeof(char *)) - 1;
static char *server_groups[] = { "libmysqld_server",
"libmysqld_client", NULL };
int main(int argc, char **argv)
{
mysql_library_init(num_elements, server_options, server_groups);
mysql = mysql_init(NULL);
mysql_close(mysql);
mysql_library_end();
return 0;
}
This diff is collapsed.
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment