devel/libpthread-stubs 0.4 MidnightBSD
Weak aliases for pthread functions
- System
- MidnightBSD
- Repository
- mports
- Maintainer
- [email protected]
- License
- mit
- Categories
- devel
Description
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.
In the other systems
| System | Port | Version |
|---|---|---|
| MidnightBSD | devel/libpthread-stubs | 0.4 |
| NetBSD | wip/libpthread-stubs | 0.5 |
Install
Binary package:
mport install libpthread-stubs
From mports:
cd /usr/mports/devel/libpthread-stubs && make install clean
To depend on this port in another port's Makefile:
RUN_DEPENDS= libpthread-stubs>0:devel/libpthread-stubs
Dependencies
Required by 4
Configuration
No options to configure.
- USES
- pathfix tar:bzip2
- Service scripts
- none
Files
pkg-plist 1
- libdata/pkgconfig/pthread-stubs.pc
distinfo 1
| File | Size | SHA256 |
|---|---|---|
| libpthread-stubs-0.4.tar.bz2 | 57565 | e4d05911a3165d3b18321cc067fdd2f023f06436e391c6a28dff618a78d2e733 |
Master sites 1
- https://xcb.freedesktop.org/dist/