diff options
author | ngie <ngie@FreeBSD.org> | 2017-02-04 15:55:31 +0000 |
---|---|---|
committer | ngie <ngie@FreeBSD.org> | 2017-02-04 15:55:31 +0000 |
commit | 53aad645dc6d43426aff220d8ef5abf5ca6319ee (patch) | |
tree | a0bb41241a631ca390cee878d064b4a7b4756756 /usr.sbin | |
parent | 386063275561117fce31f6f3c6885555c567949e (diff) | |
download | FreeBSD-src-53aad645dc6d43426aff220d8ef5abf5ca6319ee.zip FreeBSD-src-53aad645dc6d43426aff220d8ef5abf5ca6319ee.tar.gz |
MFC r311470:
Conditionalize wrap(3) use based on MK_TCP_WRAPPERS instead of
always building support into rpcbind.
Diffstat (limited to 'usr.sbin')
-rw-r--r-- | usr.sbin/rpcbind/Makefile | 14 |
1 files changed, 10 insertions, 4 deletions
diff --git a/usr.sbin/rpcbind/Makefile b/usr.sbin/rpcbind/Makefile index 43cb23f..2fbc6ae 100644 --- a/usr.sbin/rpcbind/Makefile +++ b/usr.sbin/rpcbind/Makefile @@ -8,19 +8,25 @@ 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 +DPADD+= ${LIBWRAP} +LDADD+= -lwrap +.endif + .if ${MK_TESTS} != "no" SUBDIR+= tests .endif -WARNS?= 1 +DPADD+= ${LIBUTIL} +LDADD+= -lutil -DPADD= ${LIBWRAP} ${LIBUTIL} -LDADD= -lwrap -lutil +WARNS?= 1 .include <bsd.prog.mk> |