aboutsummaryrefslogtreecommitdiff
path: root/secure/usr.sbin
diff options
context:
space:
mode:
authorEnji Cooper <ngie@FreeBSD.org>2017-01-07 08:08:35 +0000
committerEnji Cooper <ngie@FreeBSD.org>2017-01-07 08:08:35 +0000
commit233932cc2a60f2cfc775839787f52ebb794eddf2 (patch)
tree9dc473191d3bc937cb194371a57eb159c33ddc31 /secure/usr.sbin
parent73f14b50b293ca153f288f7be4dce2e2863d5b9f (diff)
downloadsrc-233932cc2a60f2cfc775839787f52ebb794eddf2.tar.gz
src-233932cc2a60f2cfc775839787f52ebb794eddf2.zip
Conditionalize building libwrap support into sshd
Only build libwrap support into sshd if MK_TCP_WRAPPERS != no This will unbreak the build if libwrap has been removed from the system MFC after: 2 weeks PR: 210141 Submitted by: kpect@protonmail.com Differential Revision: D9049
Notes
Notes: svn path=/head/; revision=311585
Diffstat (limited to 'secure/usr.sbin')
-rw-r--r--secure/usr.sbin/sshd/Makefile7
1 files changed, 6 insertions, 1 deletions
diff --git a/secure/usr.sbin/sshd/Makefile b/secure/usr.sbin/sshd/Makefile
index a3c645494a3a..5fb1e23a2a40 100644
--- a/secure/usr.sbin/sshd/Makefile
+++ b/secure/usr.sbin/sshd/Makefile
@@ -27,7 +27,7 @@ CFLAGS+=-I${SSHDIR} -include ssh_namespace.h
SRCS+= ssh_namespace.h
# pam should always happen before ssh here for static linking
-LIBADD= pam ssh util wrap
+LIBADD= pam ssh util
.if ${MK_LDNS} != "no"
CFLAGS+= -DHAVE_LDNS=1
@@ -53,6 +53,11 @@ SRCS+= krb5_config.h
LIBADD+= gssapi_krb5 gssapi krb5
.endif
+.if ${MK_TCP_WRAPPERS} != "no"
+CFLAGS+= -DLIBWRAP
+LIBADD+= wrap
+.endif
+
LIBADD+= crypto
.if defined(LOCALBASE)