Page MenuHomeFreeBSD

D40900.diff
No OneTemporary

D40900.diff

diff --git a/lib/libthr/Makefile b/lib/libthr/Makefile
--- a/lib/libthr/Makefile
+++ b/lib/libthr/Makefile
@@ -51,8 +51,10 @@
MAN= libthr.3
+.if ${MK_PTHREADS_ASSERTIONS} != "no"
# enable extra internal consistency checks
CFLAGS+=-D_PTHREADS_INVARIANTS
+.endif
PRECIOUSLIB=
diff --git a/lib/libthr/thread/thr_mutex.c b/lib/libthr/thread/thr_mutex.c
--- a/lib/libthr/thread/thr_mutex.c
+++ b/lib/libthr/thread/thr_mutex.c
@@ -120,7 +120,7 @@
__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)
diff --git a/share/mk/src.opts.mk b/share/mk/src.opts.mk
--- a/share/mk/src.opts.mk
+++ b/share/mk/src.opts.mk
@@ -159,6 +159,7 @@
PKGBOOTSTRAP \
PMC \
PPP \
+ PTHREADS_ASSERTIONS \
QUOTAS \
RADIUS_SUPPORT \
RBOOTD \
diff --git a/tools/build/options/WITHOUT_PTHREADS_ASSERTIONS b/tools/build/options/WITHOUT_PTHREADS_ASSERTIONS
new file mode 100644
--- /dev/null
+++ b/tools/build/options/WITHOUT_PTHREADS_ASSERTIONS
@@ -0,0 +1 @@
+Disable debugging assertions in pthreads library.

File Metadata

Mime Type
text/plain
Expires
Fri, Nov 15, 8:46 PM (20 h, 3 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
14647652
Default Alt Text
D40900.diff (1 KB)

Event Timeline