Add a knob, WITH*_RPCBIND_WARMSTART_SUPPORT, to allow the end-user to build

rpcbind(8) with/without warmstart support.

The knob defaults to off to preserve POLA for the feature.

See rpcbind(8) for more details about the warmstart feature.

MFC after:	7 weeks
Relnotes:	yes
Sponsored by:	Dell EMC Isilon
This commit is contained in:
Enji Cooper 2017-04-19 20:45:46 +00:00
parent 3cf7801299
commit 609b7b269d
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=317168
3 changed files with 9 additions and 0 deletions

View File

@ -186,6 +186,7 @@ __DEFAULT_NO_OPTIONS = \
OFED \
OPENLDAP \
REPRODUCIBLE_BUILD \
RPCBIND_WARMSTART_SUPPORT \
SHARED_TOOLCHAIN \
SORT_THREADS \
SVN \

View File

@ -0,0 +1,4 @@
.\" $FreeBSD$
Set to build
.Xr rpcbind 8
with warmstart support.

View File

@ -14,6 +14,10 @@ CFLAGS+= -DPORTMAP
CFLAGS+= -DINET6
.endif
.if ${MK_RPCBIND_WARMSTART_SUPPORT} != "no"
CFLAGS+= -DWARMSTART
.endif
.if ${MK_TCP_WRAPPERS} != "no"
CFLAGS+= -DLIBWRAP
LIBADD+= wrap