CVS User Account cvsuser
Tue Dec 7 04:43:03 PST 2004
Log Message:
-----------
Prefer -lpthread to -pthread on systems that support it (FreeBSD 5.X and newer)

Modified Files:
--------------
    slony1-engine/config:
        acx_pthread.m4 (r1.2 -> r1.3)

-------------- next part --------------
Index: acx_pthread.m4
===================================================================
RCS file: /usr/local/cvsroot/slony1/slony1-engine/config/acx_pthread.m4,v
retrieving revision 1.2
retrieving revision 1.3
diff -Lconfig/acx_pthread.m4 -Lconfig/acx_pthread.m4 -u -w -r1.2 -r1.3
--- config/acx_pthread.m4
+++ config/acx_pthread.m4
@@ -40,7 +40,7 @@
 # which indicates that we try without any flags at all, and "pthread-config"
 # which is a program returning the flags for the Pth emulation library.
 
-acx_pthread_flags="pthreads none -Kthread -kthread lthread -pthread -pthreads -mthreads pthread --thread-safe -mt pthread-config"
+acx_pthread_flags="pthreads none -Kthread -lpthread -kthread lthread -pthread -lpthreads -pthread -mthreads pthread --thread-safe -mt pthread-config"
 
 # The ordering *is* (sometimes) important.  Some notes on the
 # individual items follow:
@@ -49,6 +49,7 @@
 # none: in case threads are in libc; should be tried before -Kthread and
 #       other compiler flags to prevent continual compiler warnings
 # -Kthread: Sequent (threads in libc, but -Kthread needed for pthread.h)
+# -lpthread: FreeBSD prefered threads (5.x)
 # -kthread: FreeBSD kernel threads (preferred to -pthread since SMP-able)
 # lthread: LinuxThreads port on FreeBSD (also preferred to -pthread)
 # -pthread: Linux/gcc (kernel threads), BSD/gcc (userland threads)


More information about the Slony1-commit mailing list