mirror of
https://git.FreeBSD.org/src.git
synced 2024-10-19 02:29:40 +00:00
libthr: Add src.conf variable WITHOUT_PTHREADS_ASSERTIONS
(cherry picked from commit 642cd51102
)
This commit is contained in:
parent
f25a4bbf5d
commit
f0404eb39e
@ -45,8 +45,10 @@ SYMBOL_MAPS=${.CURDIR}/pthread.map
|
||||
|
||||
MAN= libthr.3
|
||||
|
||||
.if ${MK_PTHREADS_ASSERTIONS} != "no"
|
||||
# enable extra internal consistency checks
|
||||
CFLAGS+=-D_PTHREADS_INVARIANTS
|
||||
.endif
|
||||
|
||||
PRECIOUSLIB=
|
||||
|
||||
|
@ -120,7 +120,7 @@ __weak_reference(_pthread_mutex_getyieldloops_np, pthread_mutex_getyieldloops_np
|
||||
__weak_reference(_pthread_mutex_isowned_np, pthread_mutex_isowned_np);
|
||||
|
||||
static void
|
||||
mutex_init_link(struct pthread_mutex *m)
|
||||
mutex_init_link(struct pthread_mutex *m __unused)
|
||||
{
|
||||
|
||||
#if defined(_PTHREADS_INVARIANTS)
|
||||
|
@ -160,6 +160,7 @@ __DEFAULT_YES_OPTIONS = \
|
||||
PMC \
|
||||
PORTSNAP \
|
||||
PPP \
|
||||
PTHREADS_ASSERTIONS \
|
||||
QUOTAS \
|
||||
RADIUS_SUPPORT \
|
||||
RBOOTD \
|
||||
|
1
tools/build/options/WITHOUT_PTHREADS_ASSERTIONS
Normal file
1
tools/build/options/WITHOUT_PTHREADS_ASSERTIONS
Normal file
@ -0,0 +1 @@
|
||||
Disable debugging assertions in pthreads library.
|
Loading…
Reference in New Issue
Block a user