]> git.ipfire.org Git - thirdparty/freeradius-server.git/commitdiff
Re-order LIBS <-> -lpthread
authorAlan T. DeKok <aland@freeradius.org>
Fri, 6 Apr 2012 13:19:46 +0000 (15:19 +0200)
committerAlan T. DeKok <aland@freeradius.org>
Fri, 6 Apr 2012 13:19:46 +0000 (15:19 +0200)
-lpthread MAY need other libraries.  So adding it first is a good idea.

Manual merge of fd10e3b40

configure
configure.in

index da6ef73436cb1bf5ac353ee5c851e20617572396..721bc5d1ad5b396e96bef310dc188d0b1d68df73 100755 (executable)
--- a/configure
+++ b/configure
@@ -21011,7 +21011,7 @@ fi
 echo "${ECHO_T}$ac_cv_lib_pthread_pthread_create" >&6; }
 if test $ac_cv_lib_pthread_pthread_create = yes; then
    CFLAGS="$CFLAGS -D_REENTRANT -D_POSIX_PTHREAD_SEMANTICS"
-                  LIBS="$LIBS -lpthread"
+                  LIBS="-lpthread $LIBS"
 else
   { echo "$as_me:$LINENO: checking for pthread_create in -lc_r" >&5
 echo $ECHO_N "checking for pthread_create in -lc_r... $ECHO_C" >&6; }
index f22d6808ac47f248e8c37ad2c06c4fd00cb4d88f..7054652d02d0dc5745ba518e54a3b52aa983d768 100644 (file)
@@ -488,7 +488,7 @@ dnl # to do the threading properly.
 dnl #
   AC_CHECK_LIB(pthread, pthread_create,
                [ CFLAGS="$CFLAGS -D_REENTRANT -D_POSIX_PTHREAD_SEMANTICS"
-                  LIBS="$LIBS -lpthread" ],
+                  LIBS="-lpthread $LIBS" ],
                AC_CHECK_LIB(c_r, pthread_create,
                            [ CFLAGS="$CFLAGS -pthread -D_THREAD_SAFE" ],
                            [ WITH_THREADS="no" ]