diff options
author | ngie <ngie@FreeBSD.org> | 2017-01-04 00:43:59 +0000 |
---|---|---|
committer | ngie <ngie@FreeBSD.org> | 2017-01-04 00:43:59 +0000 |
commit | 6b3882b6d5d53ce2fb81fb5c89d80ced5312f292 (patch) | |
tree | 92eec178ff818472e2bf46f2c8cf90184489cedd /usr.sbin | |
parent | c019cd604784e67f4a27ba4665af1f104766aaa9 (diff) | |
download | FreeBSD-src-6b3882b6d5d53ce2fb81fb5c89d80ced5312f292.zip FreeBSD-src-6b3882b6d5d53ce2fb81fb5c89d80ced5312f292.tar.gz |
MFC r310711:
Don't explicitly build tcp wrappers support into bsnmpd; make it conditional
on MK_TCP_WRAPPERS != "no"
This likely fixes an issue seen where some of the USE_TCPWRAPPERS code didn't
work as advertised
Diffstat (limited to 'usr.sbin')
-rw-r--r-- | usr.sbin/bsnmpd/bsnmpd/Makefile | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/usr.sbin/bsnmpd/bsnmpd/Makefile b/usr.sbin/bsnmpd/bsnmpd/Makefile index 0305e8c..c1a90f78 100644 --- a/usr.sbin/bsnmpd/bsnmpd/Makefile +++ b/usr.sbin/bsnmpd/bsnmpd/Makefile @@ -125,9 +125,8 @@ DEFSDIR= ${SHAREDIR}/snmp/defs CFLAGS+= -DSNMPTREE_TYPES CFLAGS+= -I${CONTRIB}/lib -I${CONTRIB}/snmpd -I. -DUSE_LIBBEGEMOT -CFLAGS+= -DUSE_TCPWRAPPERS CFLAGS+= -DHAVE_STDINT_H -DHAVE_INTTYPES_H -DHAVE_ERR_H -DHAVE_STRLCPY -LIBADD= begemot bsnmp wrap +LIBADD= begemot bsnmp LDFLAGS= -Wl,-export-dynamic @@ -135,6 +134,11 @@ LDFLAGS= -Wl,-export-dynamic CFLAGS+= -DHAVE_LIBCRYPTO .endif +.if ${MK_TCP_WRAPPERS} != "no" +CFLAGS+= -DUSE_TCPWRAPPERS +LIBADD+= wrap +.endif + oid.h: tree.def Makefile gensnmptree -e ${XSYM} < ${.ALLSRC:M*.def} > ${.TARGET} |