summaryrefslogtreecommitdiff
path: root/cmd-line-utils
diff options
context:
space:
mode:
authorStaale Smedseng <staale.smedseng@sun.com>2009-07-08 16:49:45 +0200
committerStaale Smedseng <staale.smedseng@sun.com>2009-07-08 16:49:45 +0200
commitf46dba5a5fcc6e389700b1b8278c5a5f6f5e2e10 (patch)
treed8b514d1f32d09a3bb9e4f203f7e8db79b8b9795 /cmd-line-utils
parent7c28ec97a985f3a9e22a2fe5048dc37f61d114a3 (diff)
downloadmariadb-git-f46dba5a5fcc6e389700b1b8278c5a5f6f5e2e10.tar.gz
Bug #43397 mysql headers redefine pthread_mutex_init
unnecessarily The problem is that libmysqlclient.so is built with THREAD undefined, while a client compiling against the same header files will see THREAD as defined and definitions in my_pthread.h will be included, possibly resulting in undefined symbols that cannot be resolved with libmysqlclient.so. The suggested solution is to require that clients wanting to link with libmysqlclient.so should be built with MYSQL_CLIENT_NO_THREADS defined. This requires a documentation change, and more details for this will be supplied if this patch is approved. The MYSQL_CLIENT_NO_THREADS define was renamed from UNDEF_THREADS_HACK, to get a more suitable (less suspicious) name for the define. (The UNDEF_THREADS_HACK is retained for backwards compatibility, though.) This patch is also in anticipation of WL#4958, which will remove this problem altogether by dropping the building of libmysqlclient.
Diffstat (limited to 'cmd-line-utils')
-rw-r--r--cmd-line-utils/readline/Makefile.am2
1 files changed, 1 insertions, 1 deletions
diff --git a/cmd-line-utils/readline/Makefile.am b/cmd-line-utils/readline/Makefile.am
index 5fcbcde0516..e5f5717858d 100644
--- a/cmd-line-utils/readline/Makefile.am
+++ b/cmd-line-utils/readline/Makefile.am
@@ -31,7 +31,7 @@ noinst_HEADERS = readline.h chardefs.h keymaps.h \
EXTRA_DIST= emacs_keymap.c vi_keymap.c
-DEFS = -DUNDEF_THREADS_HACK -DHAVE_CONFIG_H -DNO_KILL_INTR
+DEFS = -DMYSQL_CLIENT_NO_THREADS -DHAVE_CONFIG_H -DNO_KILL_INTR
# Don't update the files from bitkeeper
%::SCCS/s.%