Edit

IABSD.fr/src/lib/libc/thread/Makefile.inc

Branch :

  • Show log

    Commit

  • Author : jsg
    Date : 2020-02-06 03:13:45
    Hash : 2ee00db3
    Message : Instead of opting in to futexes on archs with atomics opt out on archs without atomics, a smaller list. ok mpi@ visa@

  • lib/libc/thread/Makefile.inc
  • #	$OpenBSD: Makefile.inc,v 1.19 2020/02/06 03:13:45 jsg Exp $
    
    .PATH: ${LIBCSRCDIR}/thread
    
    SRCS+=	callbacks.c atfork.c
    
    # threads infrastructure
    SRCS+=	rthread.c \
    	rthread_condattr.c \
    	rthread_debug.c \
    	rthread_file.c \
    	rthread_libc.c \
    	rthread_once.c \
    	rthread_tls.c \
    
    notyet= rthread_condattr_clock.c \
    	rthread_equal.c \
    	rthread_exit.c \
    	spinlock.c \
    	spinlocktry.c
    
    .if ${MACHINE_ARCH} == "hppa" || ${MACHINE_ARCH} == "m88k" || \
        ${MACHINE_ARCH} == "sh"
    SRCS+=	rthread_sync.c
    .else
    CFLAGS+= -DFUTEX
    SRCS+=	rthread_mutex.c \
    	rthread_cond.c
    .endif
    
    .if defined(NOPIC)
    CFLAGS+=-DNO_PIC
    .endif
    
    OBJS+=	_atomic_lock.o