summaryrefslogtreecommitdiff
path: root/libmysql
diff options
context:
space:
mode:
Diffstat (limited to 'libmysql')
-rw-r--r--libmysql/Makefile.am2
-rw-r--r--libmysql/Makefile.shared5
-rw-r--r--libmysql/libmysql.c29
3 files changed, 6 insertions, 30 deletions
diff --git a/libmysql/Makefile.am b/libmysql/Makefile.am
index a3e16b521a9..b580884e934 100644
--- a/libmysql/Makefile.am
+++ b/libmysql/Makefile.am
@@ -29,7 +29,7 @@ INCLUDES = -I$(top_builddir)/include -I$(top_srcdir)/include \
include $(srcdir)/Makefile.shared
libmysqlclient_la_SOURCES = $(target_sources)
-libmysqlclient_la_LIBADD = $(target_libadd) $(yassl_libs_with_path)
+libmysqlclient_la_LIBADD = $(target_libadd) $(yassl_las)
libmysqlclient_la_LDFLAGS = $(target_ldflags)
EXTRA_DIST = Makefile.shared libmysql.def
noinst_HEADERS = client_settings.h
diff --git a/libmysql/Makefile.shared b/libmysql/Makefile.shared
index fd0a4eb051d..c2d98a81042 100644
--- a/libmysql/Makefile.shared
+++ b/libmysql/Makefile.shared
@@ -88,6 +88,11 @@ DEFS = -DDEFAULT_CHARSET_HOME="\"$(MYSQLBASEdir)\"" \
-DDEFAULT_SYSCONFDIR="\"$(sysconfdir)\"" \
-DSHAREDIR="\"$(MYSQLSHAREdir)\"" $(target_defs)
+if HAVE_YASSL
+yassl_las = $(top_srcdir)/extra/yassl/src/libyassl.la \
+ $(top_srcdir)/extra/yassl/taocrypt/src/libtaocrypt.la
+endif
+
# The automatic dependencies miss this
#bmove_upp.lo: $(LTCHARSET_OBJS)
diff --git a/libmysql/libmysql.c b/libmysql/libmysql.c
index 323ddfca36f..bfec476fde3 100644
--- a/libmysql/libmysql.c
+++ b/libmysql/libmysql.c
@@ -1386,35 +1386,6 @@ mysql_get_server_info(MYSQL *mysql)
}
-/*
- Get version number for server in a form easy to test on
-
- SYNOPSIS
- mysql_get_server_version()
- mysql Connection
-
- EXAMPLE
- 4.1.0-alfa -> 40100
-
- NOTES
- We will ensure that a newer server always has a bigger number.
-
- RETURN
- Signed number > 323000
-*/
-
-ulong STDCALL
-mysql_get_server_version(MYSQL *mysql)
-{
- uint major, minor, version;
- char *pos= mysql->server_version, *end_pos;
- major= (uint) strtoul(pos, &end_pos, 10); pos=end_pos+1;
- minor= (uint) strtoul(pos, &end_pos, 10); pos=end_pos+1;
- version= (uint) strtoul(pos, &end_pos, 10);
- return (ulong) major*10000L+(ulong) (minor*100+version);
-}
-
-
const char * STDCALL
mysql_get_host_info(MYSQL *mysql)
{