head	1.2;
access;
symbols
	netbsd-11-0-RC7:1.1.2.1
	netbsd-11-0-RC6:1.1.2.1
	netbsd-11-0-RC5:1.1.2.1
	netbsd-11-0-RC4:1.1.2.1
	netbsd-11-0-RC3:1.1.2.1
	netbsd-11-0-RC2:1.1.2.1
	netbsd-11-0-RC1:1.1.2.1
	perseant-exfatfs-base-20250801:1.1
	netbsd-11:1.1.0.2
	netbsd-11-base:1.1;
locks; strict;
comment	@# @;


1.2
date	2025.08.24.04.24.17;	author mrg;	state Exp;
branches;
next	1.1;
commitid	8AebZAlzfuXu9W7G;

1.1
date	2025.01.17.16.07.27;	author christos;	state Exp;
branches
	1.1.2.1;
next	;
commitid	hyZDwzforQjl6RFF;

1.1.2.1
date	2025.08.25.16.17.25;	author martin;	state Exp;
branches;
next	;
commitid	T47wSs1q7I0D588G;


desc
@@


1.2
log
@named: use liburcu-mb on netbsd.

make libucru use RCU_MB by default.
fix the liburcu-signal library name (built but unused.)

on netbsd, RCU_MEMBARRIER is identical to RCU_MB, except with some
extra code run at init time (in a ctor) and then falling back to
being identical because that code ultimately hard coded to fail.

this reduces the startup code very minimally, and avoids using
a linux-specific version (that has fallback for old linux that
works on netbsd.)  it also avoids the problem in PR#59571, though
the problem seen there is 100% still a problem, and i'll file a
separate PR about that problem.  (i'm hoping to provide a minimal
test case, but so far it is not very small.)

XXX: pullup-11.
@
text
@# $NetBSD: Makefile,v 1.1 2025/01/17 16:07:27 christos Exp $

.include <bsd.own.mk>

LIBISPRIVATE=yes
LIB=urcu-signal
CPPFLAGS+=-DRCU_SIGNAL -DRCU_MEMBARRIER

SRCS+= urcu.c urcu-pointer.c compat_arch.c compat_futex.c

.include <bsd.lib.mk>
@


1.1
log
@Add build glue and NetBSD-specific changes. The changes have been fed upstream:
https://github.com/urcu/userspace-rcu/pull/27
@
text
@d1 1
a1 1
# $NetBSD$
d6 1
a6 1
LIB=urcu-mb
@


1.1.2.1
log
@Pull up following revision(s) (requested by mrg in ticket #16):

	external/lgpl2/userspace-rcu/lib/liburcu-signal/Makefile: revision 1.2
	external/mpl/bind/bind2netbsd: revision 1.11
	external/lgpl2/userspace-rcu/lib/liburcu/Makefile: revision 1.2
	external/mpl/bind/include/config.h: revision 1.24
	external/mpl/bind/Makefile.inc: revision 1.18

named: use liburcu-mb on netbsd.

make libucru use RCU_MB by default.
fix the liburcu-signal library name (built but unused.)
on netbsd, RCU_MEMBARRIER is identical to RCU_MB, except with some
extra code run at init time (in a ctor) and then falling back to
being identical because that code ultimately hard coded to fail.
this reduces the startup code very minimally, and avoids using
a linux-specific version (that has fallback for old linux that
works on netbsd.)  it also avoids the problem in PR#59571, though
the problem seen there is 100% still a problem, and i'll file a
separate PR about that problem.  (i'm hoping to provide a minimal
test case, but so far it is not very small.)
@
text
@d1 1
a1 1
# $NetBSD: Makefile,v 1.1 2025/01/17 16:07:27 christos Exp $
d6 1
a6 1
LIB=urcu-signal
@


