Bug 4679 - Wrong use of pthread on DragonFly
Summary: Wrong use of pthread on DragonFly
Status: RESOLVED DUPLICATE of bug 4475
Alias: None
Product: cairo
Classification: Unclassified
Component: general (show other bugs)
Version: 1.0.0
Hardware: x86 (IA32) other
: medium normal
Assignee: Carl Worth
QA Contact: cairo-bugs mailing list
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2005-10-03 11:02 UTC by Jeroen Ruigrok van der Werven
Modified: 2006-06-13 23:39 UTC (History)
0 users

See Also:
i915 platform:
i915 features:


Attachments

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.