diff options
author | 2017-06-01 10:59:23 +0000 | |
---|---|---|
committer | 2017-06-01 10:59:23 +0000 | |
commit | a2d5fdac7375620d261b72673dba823666694166 (patch) | |
tree | a7ddd0ae5a802e9f5d637f0020c319ac95500990 | |
parent | crtbegin and crtend files need to be in comp, to support relink of (diff) | |
download | wireguard-openbsd-a2d5fdac7375620d261b72673dba823666694166.tar.xz wireguard-openbsd-a2d5fdac7375620d261b72673dba823666694166.zip |
Re-enabled futex based condvar & mutexes, they are not the cause of
vmd(8)'s regression.
-rw-r--r-- | lib/librthread/Makefile | 11 |
1 files changed, 9 insertions, 2 deletions
diff --git a/lib/librthread/Makefile b/lib/librthread/Makefile index c9af30d8dfe..741025eeb5e 100644 --- a/lib/librthread/Makefile +++ b/lib/librthread/Makefile @@ -1,4 +1,4 @@ -# $OpenBSD: Makefile,v 1.45 2017/06/01 08:46:34 mpi Exp $ +# $OpenBSD: Makefile,v 1.46 2017/06/01 10:59:23 mpi Exp $ LIB=pthread LIBCSRCDIR= ${.CURDIR}/../libc @@ -39,10 +39,17 @@ SRCS= rthread.c \ rthread_sig.c \ rthread_stack.c \ rthread_spin_lock.c \ - rthread_sync.c \ rthread_tls.c \ sched_prio.c +.if ${MACHINE_ARCH} == "amd64" || ${MACHINE_ARCH} == "i386" +CFLAGS+= -DFUTEX +SRCS+= rthread_mutex.c \ + rthread_cond.c +.else +SRCS+= rthread_sync.c +.endif + OBJS+= _atomic_lock.o SRCDIR= ${.CURDIR}/../libpthread |