summaryrefslogtreecommitdiffstats
path: root/lib/librthread
diff options
context:
space:
mode:
authorjsg <jsg@openbsd.org>2020-02-06 03:13:45 +0000
committerjsg <jsg@openbsd.org>2020-02-06 03:13:45 +0000
commit2ee00db36bd4c31e23829424e9f44f4dbb4646f4 (patch)
tree8a75113dd715af998ac9443223962d305c6f3a73 /lib/librthread
parentOoops. Missed a file in nuke of scsi_minphys. mpath_minphys() needs to (diff)
downloadwireguard-openbsd-2ee00db36bd4c31e23829424e9f44f4dbb4646f4.tar.xz
wireguard-openbsd-2ee00db36bd4c31e23829424e9f44f4dbb4646f4.zip
Instead of opting in to futexes on archs with atomics opt out on archs
without atomics, a smaller list. ok mpi@ visa@
Diffstat (limited to 'lib/librthread')
-rw-r--r--lib/librthread/Makefile17
1 files changed, 7 insertions, 10 deletions
diff --git a/lib/librthread/Makefile b/lib/librthread/Makefile
index b455374c141..67a2678574d 100644
--- a/lib/librthread/Makefile
+++ b/lib/librthread/Makefile
@@ -1,4 +1,4 @@
-# $OpenBSD: Makefile,v 1.55 2019/02/13 13:22:14 mpi Exp $
+# $OpenBSD: Makefile,v 1.56 2020/02/06 03:13:45 jsg Exp $
LIB=pthread
LIBCSRCDIR= ${.CURDIR}/../libc
@@ -33,18 +33,15 @@ SRCS= rthread.c \
rthread_spin_lock.c \
sched_prio.c
-# Architectures that implement atomics
-.if ${MACHINE_ARCH} == "aarch64" || ${MACHINE_ARCH} == "alpha" || \
- ${MACHINE_ARCH} == "amd64" || ${MACHINE_ARCH} == "arm" || \
- ${MACHINE_ARCH} == "i386" || ${MACHINE_ARCH} == "mips64" || \
- ${MACHINE_ARCH} == "mips64el" || ${MACHINE_ARCH} == "powerpc" || \
- ${MACHINE_ARCH} == "sparc64"
+# Architectures without atomics
+.if ${MACHINE_ARCH} == "hppa" || ${MACHINE_ARCH} == "m88k" || \
+ ${MACHINE_ARCH} == "sh"
+SRCS+= rthread_sem_compat.c \
+ rthread_rwlock_compat.c
+.else
CFLAGS+= -DFUTEX
SRCS+= rthread_sem.c \
rthread_rwlock.c
-.else
-SRCS+= rthread_sem_compat.c \
- rthread_rwlock_compat.c
.endif
SRCDIR= ${.CURDIR}/../libpthread