Commit b99f88a9 authored by serg@serg.mysql.com's avatar serg@serg.mysql.com

-lpthread should be appended to LIBS

parent 302a43f0
...@@ -1231,7 +1231,7 @@ fi ...@@ -1231,7 +1231,7 @@ fi
AC_MSG_CHECKING("named thread libs:") AC_MSG_CHECKING("named thread libs:")
if test "$with_named_thread" != "no" if test "$with_named_thread" != "no"
then then
LIBS="$with_named_thread $LIBS" LIBS="$with_named_thread $LIBS $with_named_thread"
with_posix_threads="yes" with_posix_threads="yes"
with_mit_threads="no" with_mit_threads="no"
AC_MSG_RESULT("$with_named_thread") AC_MSG_RESULT("$with_named_thread")
...@@ -1250,7 +1250,7 @@ else ...@@ -1250,7 +1250,7 @@ else
then then
AC_MSG_CHECKING("for pthread_create in -lpthread"); AC_MSG_CHECKING("for pthread_create in -lpthread");
ac_save_LIBS="$LIBS" ac_save_LIBS="$LIBS"
LIBS="-lpthread $LIBS" LIBS="$LIBS -lpthread"
AC_TRY_LINK( AC_TRY_LINK(
[#include <pthread.h>], [#include <pthread.h>],
[ (void) pthread_create((pthread_t*) 0,(pthread_attr_t*) 0, 0, 0); ], [ (void) pthread_create((pthread_t*) 0,(pthread_attr_t*) 0, 0, 0); ],
...@@ -1258,7 +1258,7 @@ else ...@@ -1258,7 +1258,7 @@ else
AC_MSG_RESULT("$with_posix_threads") AC_MSG_RESULT("$with_posix_threads")
if test "$with_posix_threads" = "no" if test "$with_posix_threads" = "no"
then then
LIBS=" -lpthreads $ac_save_LIBS" LIBS=" $ac_save_LIBS -lpthreads"
AC_MSG_CHECKING("for pthread_create in -lpthreads"); AC_MSG_CHECKING("for pthread_create in -lpthreads");
AC_TRY_LINK( AC_TRY_LINK(
[#include <pthread.h>], [#include <pthread.h>],
......
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