diff options
author | unknown <serg@serg.mysql.com> | 2002-10-10 15:14:47 +0000 |
---|---|---|
committer | unknown <serg@serg.mysql.com> | 2002-10-10 15:14:47 +0000 |
commit | ac471d1daf3c81b8365af990c3ca2552dab02214 (patch) | |
tree | 8ef8ef8ddd0d5aa4009355a041305a62f21517cb /configure.in | |
parent | 3d21a8cf0b0708fe38dda9898a1bb4c7a44a61a9 (diff) | |
download | mariadb-git-ac471d1daf3c81b8365af990c3ca2552dab02214.tar.gz |
libraries should be always prepended to $LIBS, never appended
Diffstat (limited to 'configure.in')
-rw-r--r-- | configure.in | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/configure.in b/configure.in index 002932c9835..ca445813328 100644 --- a/configure.in +++ b/configure.in @@ -735,7 +735,7 @@ AC_ARG_WITH(libwrap, _libs=${LIBS} AC_CHECK_HEADER(tcpd.h, - LIBS="$LIBS -lwrap" + LIBS="-lwrap $LIBS" AC_MSG_CHECKING(for TCP wrappers library -lwrap) AC_TRY_LINK([#include <tcpd.h> int allow_severity = 0; @@ -1231,7 +1231,7 @@ fi AC_MSG_CHECKING("named thread libs:") if test "$with_named_thread" != "no" then - LIBS="$with_named_thread $LIBS $with_named_thread" + LIBS="$with_named_thread $LIBS" with_posix_threads="yes" with_mit_threads="no" AC_MSG_RESULT("$with_named_thread") @@ -1250,7 +1250,7 @@ else then AC_MSG_CHECKING("for pthread_create in -lpthread"); ac_save_LIBS="$LIBS" - LIBS="$LIBS -lpthread" + LIBS="-lpthread $LIBS" AC_TRY_LINK( [#include <pthread.h>], [ (void) pthread_create((pthread_t*) 0,(pthread_attr_t*) 0, 0, 0); ], @@ -1258,7 +1258,7 @@ else AC_MSG_RESULT("$with_posix_threads") if test "$with_posix_threads" = "no" then - LIBS=" $ac_save_LIBS -lpthreads" + LIBS=" -lpthreads $ac_save_LIBS" AC_MSG_CHECKING("for pthread_create in -lpthreads"); AC_TRY_LINK( [#include <pthread.h>], |