Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/sbin/cgdconfig Re-enable threads; apparently we get differen...



details:   https://anonhg.NetBSD.org/src/rev/bb9c9b82845b
branches:  trunk
changeset: 366152:bb9c9b82845b
user:      christos <christos%NetBSD.org@localhost>
date:      Mon May 16 10:44:06 2022 +0000

description:
Re-enable threads; apparently we get different results depending if we are
threaded or not... This tastes like a bug.

diffstat:

 sbin/cgdconfig/Makefile |  8 +++++---
 1 files changed, 5 insertions(+), 3 deletions(-)

diffs (23 lines):

diff -r 8f098115c173 -r bb9c9b82845b sbin/cgdconfig/Makefile
--- a/sbin/cgdconfig/Makefile   Mon May 16 10:03:23 2022 +0000
+++ b/sbin/cgdconfig/Makefile   Mon May 16 10:44:06 2022 +0000
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.18 2022/05/15 19:53:27 christos Exp $
+# $NetBSD: Makefile,v 1.19 2022/05/16 10:44:06 christos Exp $
 
 RUMPPRG=cgdconfig
 MAN=   cgdconfig.8
@@ -22,9 +22,11 @@
 .if ${MKARGON2} != "no"
 ARGON2DIR=     ${NETBSDSRCDIR}/external/apache2/argon2/dist/phc-winner-argon2
 CPPFLAGS+=     -I${ARGON2DIR}/include -I${ARGON2DIR}/src/blake2
-CPPFLAGS+=     -DHAVE_ARGON2 -DARGON2_NO_THREADS
+CPPFLAGS+=     -DHAVE_ARGON2
 .PATH.c: ${ARGON2DIR}/src ${ARGON2DIR}/src/blake2
-SRCS+= argon2_utils.c argon2.c core.c encoding.c ref.c blake2b.c
+SRCS+= argon2_utils.c argon2.c core.c encoding.c ref.c blake2b.c thread.c
+DPADD+=  ${LIBPTHREAD}
+LDADD+=  -lpthread
 .endif
 
 .include <bsd.prog.mk>



Home | Main Index | Thread Index | Old Index