From 7127589ca079f4f4279be601ebd272b7488906b4 Mon Sep 17 00:00:00 2001 From: Nathan Bird Date: Wed, 22 Feb 2012 16:59:23 -0500 Subject: [PATCH] If running on a threaded lisp try loading libmysqlclient_r http://dev.mysql.com/doc/refman/5.1/en/threaded-clients.html --- ChangeLog | 7 +++++++ db-mysql/mysql-loader.lisp | 7 ++++++- 2 files changed, 13 insertions(+), 1 deletion(-) diff --git a/ChangeLog b/ChangeLog index 8b7aecf..69b8168 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,10 @@ +2012-02-22 Nathan Bird + + * db-mysql/mysql-loader.lisp (*mysql-library-candidate-names*): If + running on a threaded lisp try loading libmysqlclient_r (the + threaded build) first. from + http://dev.mysql.com/doc/refman/5.1/en/threaded-clients.html + 2012-01-05 Nathan Bird * db-odbc/odbc-dbi.lisp: handle sql decimal type in the same way diff --git a/db-mysql/mysql-loader.lisp b/db-mysql/mysql-loader.lisp index afea3e5..cb75e5e 100644 --- a/db-mysql/mysql-loader.lisp +++ b/db-mysql/mysql-loader.lisp @@ -22,7 +22,12 @@ "clsql_mysql")) (defvar *mysql-library-candidate-names* - '("libmysqlclient" "libmysql")) + '( + #+(or allegro cmu lispworks openmcl sb-thread scl) "libmysqlclient_r" + "libmysqlclient" + "libmysql")) + + (defvar *mysql-supporting-libraries* '("c") "Used only by CMU. List of library flags needed to be passed to ld to -- 2.34.1