summaryrefslogtreecommitdiff
path: root/configure.in
diff options
context:
space:
mode:
authorunknown <serg@serg.mysql.com>2002-10-10 15:14:47 +0000
committerunknown <serg@serg.mysql.com>2002-10-10 15:14:47 +0000
commitc8cbed35f8354930208e18402540411650ddb439 (patch)
tree8ef8ef8ddd0d5aa4009355a041305a62f21517cb /configure.in
parent842f095d50d413adc78ca716252ff12e9819675a (diff)
downloadmariadb-git-c8cbed35f8354930208e18402540411650ddb439.tar.gz
libraries should be always prepended to $LIBS, never appended
Diffstat (limited to 'configure.in')
-rw-r--r--configure.in8
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>],