emacs-diffs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Emacs-diffs] /srv/bzr/emacs/trunk r106173: * configure.in (LIB_PTHREAD)


From: Paul Eggert
Subject: [Emacs-diffs] /srv/bzr/emacs/trunk r106173: * configure.in (LIB_PTHREAD): Prepend -lpthread to LIBS (Bug#9852)
Date: Sun, 23 Oct 2011 19:40:23 -0700
User-agent: Bazaar (2.3.1)

------------------------------------------------------------
revno: 106173
committer: Paul Eggert <address@hidden>
branch nick: trunk
timestamp: Sun 2011-10-23 19:40:23 -0700
message:
  * 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.
modified:
  ChangeLog
  configure.in
=== modified file 'ChangeLog'
--- a/ChangeLog 2011-10-20 06:52:55 +0000
+++ b/ChangeLog 2011-10-24 02:40:23 +0000
@@ -1,3 +1,10 @@
+2011-10-24  Paul Eggert  <address@hidden>
+
+       * 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  <address@hidden>
 
        Time zone name fixes for non-ASCII locales (Bug#641, Bug#9794)

=== modified file 'configure.in'
--- a/configure.in      2011-10-20 06:52:55 +0000
+++ b/configure.in      2011-10-24 02:40:23 +0000
@@ -1723,7 +1723,8 @@
 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


reply via email to

[Prev in Thread] Current Thread [Next in Thread]