aboutsummaryrefslogtreecommitdiff
path: root/odb/mysql/makefile
diff options
context:
space:
mode:
authorBoris Kolpackov <boris@codesynthesis.com>2012-06-15 11:16:44 +0200
committerBoris Kolpackov <boris@codesynthesis.com>2012-06-15 11:16:44 +0200
commitaf2808859e7a98666785752b8069c473dda94a1f (patch)
tree123979c9700e588ad0f3007c19c096646dd73704 /odb/mysql/makefile
parent5bfec1c98e05b86b719edb37ce1be8778f91d6ec (diff)
Add support for building against libmysqlclient that lacks THR_KEY_mysys
In certain distributions (specifically Fedora 15 and later), maintainers limit the number of visible symbols. If THR_KEY_mysys is hidden, then we try to create the TLS keys in such an order that it results in the correct behavior. And then hope for the best.
Diffstat (limited to 'odb/mysql/makefile')
-rw-r--r--odb/mysql/makefile1
1 files changed, 1 insertions, 0 deletions
diff --git a/odb/mysql/makefile b/odb/mysql/makefile
index 1b14f60..4ae255f 100644
--- a/odb/mysql/makefile
+++ b/odb/mysql/makefile
@@ -80,6 +80,7 @@ $(out_base)/details/config.h: | $(out_base)/details/.
@echo '#define ODB_MYSQL_DETAILS_CONFIG_H' >>$@
@echo '' >>$@
@echo '#define LIBODB_MYSQL_INCLUDE_LONG 1' >>$@
+ @echo '#define LIBODB_MYSQL_THR_KEY_VISIBLE 1' >>$@
@echo '' >>$@
@echo '#endif /* ODB_MYSQL_DETAILS_CONFIG_H */' >>$@