[cairo] Assembler problems on FreeBSD?

Evan Martin martine at danga.com
Wed Sep 7 07:31:32 PDT 2005

On 9/7/05, Joe R <vinnyjojo at yahoo.com> wrote:
> --- Carl Worth <cworth at cworth.org> wrote:
> > On Sat, 3 Sep 2005 12:52:07 -0700 (PDT), Joe R wrote:
> >       if HAVE_PTHREAD
> >       LDADDS += -lpthread
> >       endif
> >
> > works fine on my Linux machine. What would you need to change in that
> > file to get things to work for you?
> There's no libpthread on FreeBSD (all BSD?) machines.  Instead, you bring in
> thread support using a switch -pthread; including -lpthread makes ld fail
> (since there's no library).  I just took a look at Makefile.am in the root dir,
> but I can't figure out how to write the test you need (for the correct OS) into
> it.  Otherwise this explaination would be a lot more specific & useful :)

Check Google for [autoconf pthread] and you'll find snippets of m4
that ought to do what you want.  In particular, this page looks good
and exhaustive:

More information about the cairo mailing list