[cairo-bugs] [Bug 4475] configure checks pthread.h but not pthread library

bugzilla-daemon at freedesktop.org bugzilla-daemon at freedesktop.org
Fri Feb 10 11:45:24 PST 2012


Uli Schlachter <psychon at znc.in> changed:

           What    |Removed                     |Added
             Status|NEW                         |RESOLVED
         Resolution|                            |FIXED

--- Comment #13 from Uli Schlachter <psychon at znc.in> 2012-02-10 11:45:24 PST ---
The header-only pthread check was already removed two years ago:

commit e3b2212bc5c4884eab356ae263b8318e10c379ac
Author: Benjamin Otte <otte at redhat.com>
Date:   Thu May 13 15:14:29 2010 +0200

    build: Fix pthread detection

    Incorporate the pthread detection code from the autoconf archive. Should
    fix build on obscure archs that pretend to be UNIXy - like Mac OS X


Later on, that was improved again:

commit fca8977219b857e2e61dd86ac39ae9f40086f306
Author: M Joonas Pihlaja <jpihlaja at cc.helsinki.fi>
Date:   Sun Jun 27 03:03:17 2010 +0300

    build: Rework pthread detection.

    Use two levels of pthread support: a minimal level used to
    build cairo itself, and a full level to build threaded apps
    which want to use cairo.  The minimal level tries to use
    pthread stubs from libc if possible, but falls back to the
    full level if that's not possible.  We use CFLAGS=-D_REENTRANT
    LIBS=-lpthread to find a real pthread library since that seems
    to work on every unix-like test box we can get our hands on.

This should be more than enough to consider this bug fixed.

Configure bugmail: https://bugs.freedesktop.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the QA Contact for the bug.

More information about the cairo-bugs mailing list