opnsense-src/lib/libstdthreads/Makefile
Lexi Winter b2249ee627 libstdthreads: Move to the runtime package
This library is required for C11 conformance, and is tiny (11kB), so
instead of creating a bunch of packages for it, put it in runtime.

Although this is a core C library and might be expected to live in
clibs, kib objected to this on the basis that almost nothing actually
uses libstdthreads and putting it in clibs would be wasteful.

MFC after:	1 day
Reviewed by:	kib
Sponsored by:	https://www.patreon.com/bsdivy
Differential Revision:	https://reviews.freebsd.org/D52792

(cherry picked from commit 11709058bf680f5738c6656597f2ff9e662c9400)
2025-10-01 11:36:07 +01:00

39 lines
981 B
Makefile

PACKAGE=runtime
LIB= stdthreads
SHLIB_MAJOR= 0
INCS= threads.h
SRCS= threads.h call_once.c cnd.c mtx.c thrd.c tss.c
MAN= thrd_create.3
MLINKS= thrd_create.3 call_once.3 \
thrd_create.3 cnd_broadcast.3 \
thrd_create.3 cnd_destroy.3 \
thrd_create.3 cnd_init.3 \
thrd_create.3 cnd_signal.3 \
thrd_create.3 cnd_timedwait.3 \
thrd_create.3 cnd_wait.3 \
thrd_create.3 mtx_destroy.3 \
thrd_create.3 mtx_init.3 \
thrd_create.3 mtx_lock.3 \
thrd_create.3 mtx_timedlock.3 \
thrd_create.3 mtx_trylock.3 \
thrd_create.3 mtx_unlock.3 \
thrd_create.3 thrd_current.3 \
thrd_create.3 thrd_detach.3 \
thrd_create.3 thrd_equal.3 \
thrd_create.3 thrd_exit.3 \
thrd_create.3 thrd_join.3 \
thrd_create.3 thrd_sleep.3 \
thrd_create.3 thrd_yield.3 \
thrd_create.3 tss_create.3 \
thrd_create.3 tss_delete.3 \
thrd_create.3 tss_get.3 \
thrd_create.3 tss_set.3
LIBADD= pthread
VERSION_DEF= ${SRCTOP}/lib/libc/Versions.def
SYMBOL_MAPS= ${.CURDIR}/Symbol.map
.include <bsd.lib.mk>