|
Description
|
This case delivers pkgconfig files named pthread-stubs.pc, to satisfy
dependencies of several source packages from X.Org and related communities
(DRI & XCB).
The community description of pthread-stubs is:
This library provides weak aliases for pthread functions not
provided in libc or otherwise available by default. Libraries
like libxcb rely on pthread stubs to use pthreads optionally,
becoming thread-safe when linked to libpthread, while avoiding any
performance hit when running single-threaded. libpthread-stubs
supports this behavior even on platforms which do not supply all
the necessary pthread stubs. On platforms which already supply
all the necessary pthread stubs, this package ships only the
pkg-config file pthread-stubs.pc, to allow libraries to
unconditionally express a dependency on pthread-stubs and still
obtain correct behavior.
Since Solaris libc has all the required pthread functions already, no
library is built on Solaris, and the delivered pthread-stubs file has
a blank "Libs" line, causing pkg-config --libs pthread-stubs to print
that no linker flags are necessary to safely build a package calling
pthread functions.
Delivered files:
----------------
In package SUNWxwinc:
/usr/lib/pkgconfig/pthread-stubs.pc
/usr/lib/{sparcv9,amd64}/pkgconfig/pthread-stubs.pc
Exported interfaces:
--------------------
pthread-stubs pkg-config entry Uncommitted
*** Test Case ***
' pkg-config --libs pthread-stubs ' should produce a blank line and no errors.
|