Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 23 Jan 2017 20:54:09 -0600
From:      Eric van Gyzen <vangyzen@FreeBSD.org>
To:        Derrick McKee <derrick.mckee@gmail.com>, "freebsd-hackers@freebsd.org" <freebsd-hackers@freebsd.org>
Subject:   Re: Missing pthread support for custom libc
Message-ID:  <6105991c-64a2-758b-049b-d3409b612501@vangyzen.net>
In-Reply-To: <CAJoBWHw_hAXCn30VW3Qbk4GbhhHiyJWvten5CoSGKO4OWXooJg@mail.gmail.com>
References:  <CAJoBWHw_hAXCn30VW3Qbk4GbhhHiyJWvten5CoSGKO4OWXooJg@mail.gmail.com>

next in thread | previous in thread | raw e-mail | index | archive | help
On 1/23/17 7:20 PM, Derrick McKee wrote:
> I've compiled libc using a custom version of clang, and it seems to be
> missing pthread support.  When I try to compile Firefox and use my version
> of libc, I get the following error:
>
> checking for pthread_create in -lpthreads... no
> checking for pthread_create in -lpthread... no
> checking for pthread_create in -lc_r... no
> checking for pthread_create in -lc... no
> configure: error: --with-pthreads specified for a system without pthread
> support

FreeBSD's pthread support is provided by libpthread, a.k.a. libthr, the 
source for which is in base/lib/libthr.

Cheers,

Eric



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?6105991c-64a2-758b-049b-d3409b612501>