bug-gnulib
[Top][All Lists]
Advanced

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

Re: ./m4/pthread.m4 causes coreutils build failure on FreeBSD 9


From: Bruno Haible
Subject: Re: ./m4/pthread.m4 causes coreutils build failure on FreeBSD 9
Date: Thu, 05 Jul 2012 10:35:59 +0200
User-agent: KMail/4.7.4 (Linux/3.1.10-1.9-desktop; KDE/4.7.4; x86_64; ; )

Hi Paul,

> OK, thanks, I pushed it.

This change makes it work for FreeBSD 9, but reverts the fixes done for
IRIX 6.5 and OSF/1 on 2011-09-01 and 2011-09-08. Can you make a fix that
works on all three platforms? Here's the situation:

On Mac OS X, Solaris, Cygwin:
pthread_create and pthread_join in libc.
LIB_PTHREAD ought to be set to "".

On glibc, FreeBSD 6, NetBSD, OpenBSD, AIX:
pthread_create and pthread_join in libpthread.
LIB_PTHREAD ought to be set to "-lpthread".

On FreeBSD 9: pthread_create in libpthread, pthread_join in libc.
LIB_PTHREAD ought to be set to "-lpthread".

On IRIX 6.5: pthread_create in libc, pthread_join in libpthread.
LIB_PTHREAD ought to be set to "-lpthread".

On OSF/1: pthread_create and pthread_join are macros that expand to
__pthread_create and __pthread_join, respectively, which are both found
in libpthread (not libc).
LIB_PTHREAD ought to be set to "-lpthread".

Bruno




reply via email to

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