From 74410f9362ed4c06276023588545a7e6c3ba0a3e Mon Sep 17 00:00:00 2001 From: Enji Cooper Date: Fri, 6 Jan 2017 04:13:08 +0000 Subject: [PATCH] Conditionalize wrap(3) use based on MK_TCP_WRAPPERS instead of always building support into rpcbind. MFC after: 2 weeks --- usr.sbin/rpcbind/Makefile | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/usr.sbin/rpcbind/Makefile b/usr.sbin/rpcbind/Makefile index b3282601efc7..24d09e800799 100644 --- a/usr.sbin/rpcbind/Makefile +++ b/usr.sbin/rpcbind/Makefile @@ -8,18 +8,21 @@ MAN= rpcbind.8 SRCS= check_bound.c rpcb_stat.c rpcb_svc_4.c rpcbind.c pmap_svc.c \ rpcb_svc.c rpcb_svc_com.c security.c warmstart.c util.c -CFLAGS+= -DPORTMAP -DLIBWRAP +CFLAGS+= -DPORTMAP .if ${MK_INET6_SUPPORT} != "no" CFLAGS+= -DINET6 .endif +.if ${MK_TCP_WRAPPERS} != "no" +CFLAGS+= -DLIBWRAP +LIBADD+= wrap +.endif + .if ${MK_TESTS} != "no" SUBDIR+= tests .endif WARNS?= 1 -LIBADD= wrap - .include