Bug 4679

Summary: Wrong use of pthread on DragonFly
Product: cairo Reporter: Jeroen Ruigrok van der Werven <asmodai>
Component: generalAssignee: Carl Worth <cworth>
Status: RESOLVED DUPLICATE QA Contact: cairo-bugs mailing list <cairo-bugs>
Severity: normal    
Priority: medium    
Version: 1.0.0   
Hardware: x86 (IA32)   
OS: other   
Whiteboard:
i915 platform: i915 features:

Description Jeroen Ruigrok van der Werven 2005-10-03 11:02:54 UTC
On DragonFly (and perhaps some other platforms too) solely passing -pthread to
gcc is good enough, there is no need to augment LIBS with -lpthread (which does
not even exist).
So the simple case of just tacking -lpthread if XTHREAD in Xlib is defined is
rather crude and breaks compilation on DragonFly.

In effect it means getting rid of -lpthread from LIBS and adding -pthread to
CLFAGS.
Comment 1 Jeroen Ruigrok van der Werven 2005-10-03 11:12:19 UTC
This was observed in glitz 0.4.4 by the way.
Cairo 1.0.0 seems to follow the right way.
Comment 2 Jeroen Ruigrok van der Werven 2005-10-03 13:07:22 UTC
Actually, tests/Makefile.in has a hardcoded -lpthread which will cause issues as
well in cairo.
Comment 3 Behdad Esfahbod 2006-06-13 23:39:03 UTC

*** This bug has been marked as a duplicate of 4475 ***

Use of freedesktop.org services, including Bugzilla, is subject to our Code of Conduct. How we collect and use information is described in our Privacy Policy.