diff options
author | ngie <ngie@FreeBSD.org> | 2017-02-04 15:56:24 +0000 |
---|---|---|
committer | ngie <ngie@FreeBSD.org> | 2017-02-04 15:56:24 +0000 |
commit | c76d753565f839fe82837cda8e809b0312251fbe (patch) | |
tree | b0970f9215ac2de28a0b5fb35a6e30950817aaf8 | |
parent | d614db0aef558c18e033f3dd46f1c4ada363710d (diff) | |
download | FreeBSD-src-c76d753565f839fe82837cda8e809b0312251fbe.zip FreeBSD-src-c76d753565f839fe82837cda8e809b0312251fbe.tar.gz |
MFC r311470:
Conditionalize wrap(3) use based on MK_TCP_WRAPPERS instead of
always building support into rpcbind.
-rw-r--r-- | usr.sbin/rpcbind/Makefile | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/usr.sbin/rpcbind/Makefile b/usr.sbin/rpcbind/Makefile index b328260..24d09e8 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 <bsd.prog.mk> |