Commit a2805d9f authored by unknown's avatar unknown

Fix that libmysqlclient_r can be compiled with mit-pthreads on Linux

parent e2b803e3
...@@ -805,6 +805,7 @@ case $SYSTEM_TYPE in ...@@ -805,6 +805,7 @@ case $SYSTEM_TYPE in
echo "Adding flag -Dunix" echo "Adding flag -Dunix"
CFLAGS="$CFLAGS -Dunix" CFLAGS="$CFLAGS -Dunix"
CXXFLAGS="$CXXFLAGS -Dunix" CXXFLAGS="$CXXFLAGS -Dunix"
OVERRIDE_MT_LD_ADD="\$(top_srcdir)/mit-pthreads/obj/libpthread.a"
;; ;;
*bsdi*) *bsdi*)
echo "Adding fix for BSDI" echo "Adding fix for BSDI"
...@@ -2051,7 +2052,12 @@ EOF ...@@ -2051,7 +2052,12 @@ EOF
AC_DEFINE(HAVE_mit_thread) AC_DEFINE(HAVE_mit_thread)
MT_INCLUDES="-I\$(top_srcdir)/mit-pthreads/include" MT_INCLUDES="-I\$(top_srcdir)/mit-pthreads/include"
AC_SUBST(MT_INCLUDES) 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) AC_SUBST(MT_LD_ADD)
echo "" echo ""
echo "Configuring MIT Pthreads" echo "Configuring MIT Pthreads"
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment