]> git.eshelyaron.com Git - emacs.git/commitdiff
* configure.in (LIB_PTHREAD): Prepend -lpthread to LIBS (Bug#9852)
authorPaul Eggert <eggert@cs.ucla.edu>
Mon, 24 Oct 2011 02:40:23 +0000 (19:40 -0700)
committerPaul Eggert <eggert@cs.ucla.edu>
Mon, 24 Oct 2011 02:40:23 +0000 (19:40 -0700)
if the library is found.  Otherwise, later configure-time tests,
such as the test for pthread_sigmask, generate the wrong results
on some platforms.  Problem reported for FreeBSD by Nali Toja.

ChangeLog
configure.in

index 9b9a7176b05d2015e8340c69a1ff90d2b7f44831..ade71ae09a71ebc92c8195911760d68fb63f004b 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,10 @@
+2011-10-24  Paul Eggert  <eggert@cs.ucla.edu>
+
+       * configure.in (LIB_PTHREAD): Prepend -lpthread to LIBS (Bug#9852)
+       if the library is found.  Otherwise, later configure-time tests,
+       such as the test for pthread_sigmask, generate the wrong results
+       on some platforms.  Problem reported for FreeBSD by Nali Toja.
+
 2011-10-20  Paul Eggert  <eggert@cs.ucla.edu>
 
        Time zone name fixes for non-ASCII locales (Bug#641, Bug#9794)
index 5b32e10853f3161f217f06965e36df708dee8ad8..3040c13e6836e8a5d3e2401ba7ebb14326f2ac42 100644 (file)
@@ -1723,7 +1723,8 @@ fi
 if test "$HAVE_PTHREAD" = yes; then
   case "${canonical}" in
     *-hpux*) ;;
-    *) LIB_PTHREAD="-lpthread" ;;
+    *) LIB_PTHREAD="-lpthread"
+       LIBS="$LIB_PTHREAD $LIBS" ;;
   esac
   AC_DEFINE(HAVE_PTHREAD, 1, [Define to 1 if you have pthread (-lpthread).])
 fi