Bug 1766 - Add -DXTHREADS to X11.pc?
Summary: Add -DXTHREADS to X11.pc?
Status: CLOSED FIXED
Alias: None
Product: xorg
Classification: Unclassified
Component: Lib/Xlib (show other bugs)
Version: unspecified
Hardware: x86 (IA32) Linux (All)
: high normal
Assignee: Jim Gettys
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2004-11-02 16:34 UTC by Owen Taylor
Modified: 2011-10-15 17:23 UTC (History)
0 users

See Also:
i915 platform:
i915 features:


Attachments

Description Owen Taylor 2004-11-02 16:34:37 UTC
Unless you supply --disable-threads to configure, libX11 will be
built with threading support, XTHREADS is defined by the configure.ac.

But all the other libraries making up 'xlibs' are built without,
so LockDisplay(), and so forth, compile to no-ops.

One fix would be to, when libX11 is built with threading support,
add -DXTHREADS to Cflags in X11.pc. This would also help apps
that use XlibInt.c.
Comment 1 Josh Triplett 2005-05-05 00:22:42 UTC
An alternative fix was added to libX11 some time ago: Xlibint.h is now generated
from Xlibint.h.in, with "#define XTHREADS" added if libX11 was built with XTHREADS.


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.