diff options
author | unknown <monty@hundin.mysql.fi> | 2001-07-16 13:27:30 +0300 |
---|---|---|
committer | unknown <monty@hundin.mysql.fi> | 2001-07-16 13:27:30 +0300 |
commit | a2805d9f4ff9cd770d80389f2dccec65924ee4b2 (patch) | |
tree | f5e179b304838e4368c697730fb8e94ad7805421 /configure.in | |
parent | e2b803e3b6f54200a4f1bff16d2ca1bb59a3c95e (diff) | |
download | mariadb-git-a2805d9f4ff9cd770d80389f2dccec65924ee4b2.tar.gz |
Fix that libmysqlclient_r can be compiled with mit-pthreads on Linux
Diffstat (limited to 'configure.in')
-rw-r--r-- | configure.in | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/configure.in b/configure.in index d3428b6f702..97452c52719 100644 --- a/configure.in +++ b/configure.in @@ -805,6 +805,7 @@ case $SYSTEM_TYPE in echo "Adding flag -Dunix" CFLAGS="$CFLAGS -Dunix" CXXFLAGS="$CXXFLAGS -Dunix" + OVERRIDE_MT_LD_ADD="\$(top_srcdir)/mit-pthreads/obj/libpthread.a" ;; *bsdi*) echo "Adding fix for BSDI" @@ -2051,7 +2052,12 @@ EOF AC_DEFINE(HAVE_mit_thread) MT_INCLUDES="-I\$(top_srcdir)/mit-pthreads/include" AC_SUBST(MT_INCLUDES) - MT_LD_ADD="\$(top_srcdir)/mit-pthreads/obj/libpthread.a" + if test -n "$OVERRIDE_MT_LD_ADD" + then + MT_LD_ADD="$OVERRIDE_MT_LD_ADD" + else + MT_LD_ADD="-L \$(top_srcdir)/mit-pthreads/obj/ -lpthread.a" + fi AC_SUBST(MT_LD_ADD) echo "" echo "Configuring MIT Pthreads" |