mirror of
https://github.com/opnsense/src.git
synced 2026-05-28 04:12:45 -04:00
ssh: tidy include handling
Centralize optional krb5_config.h handling in ssh.mk. Do not add headers (that are committed to the src tree) to SRCS as there is no need. Reviewed by: imp, jlduran, kevans (all earlier) MFC after: 1 month Sponsored by: The FreeBSD Foundation Differential Revision: https://reviews.freebsd.org/D34409 (cherry picked from commit 7f916236044d9a733de8b3c47b5dcbf71988cb03)
This commit is contained in:
parent
b328b79f6f
commit
be7b176511
5 changed files with 4 additions and 12 deletions
|
|
@ -51,11 +51,6 @@ SRCS+= getrrsetbyname-ldns.c
|
|||
LIBADD+= ldns
|
||||
.endif
|
||||
|
||||
.if ${MK_GSSAPI} != "no" && ${MK_KERBEROS_SUPPORT} != "no"
|
||||
CFLAGS+= -include krb5_config.h
|
||||
SRCS+= krb5_config.h
|
||||
.endif
|
||||
|
||||
.if defined(LOCALBASE)
|
||||
CFLAGS+= -D_PATH_SSH_ASKPASS_DEFAULT='"${LOCALBASE}/bin/ssh-askpass"'
|
||||
.endif
|
||||
|
|
|
|||
|
|
@ -45,8 +45,6 @@ LDFLAGS+=-L${LIBBLACKLISTDIR}
|
|||
.endif
|
||||
|
||||
.if ${MK_GSSAPI} != "no" && ${MK_KERBEROS_SUPPORT} != "no"
|
||||
CFLAGS+= -include krb5_config.h
|
||||
SRCS+= krb5_config.h
|
||||
LIBADD+= gssapi_krb5 gssapi krb5
|
||||
.endif
|
||||
|
||||
|
|
|
|||
|
|
@ -5,7 +5,10 @@
|
|||
SSHDIR= ${SRCTOP}/crypto/openssh
|
||||
|
||||
CFLAGS+= -I${SSHDIR} -include ssh_namespace.h
|
||||
SRCS+= ssh_namespace.h
|
||||
|
||||
.if ${MK_GSSAPI} != "no" && ${MK_KERBEROS_SUPPORT} != "no"
|
||||
CFLAGS+= -include krb5_config.h
|
||||
.endif
|
||||
|
||||
CFLAGS+= -DXAUTH_PATH=\"${LOCALBASE:U/usr/local}/bin/xauth\"
|
||||
|
||||
|
|
|
|||
|
|
@ -23,8 +23,6 @@ CFLAGS+= -DHAVE_LDNS=1
|
|||
.endif
|
||||
|
||||
.if ${MK_GSSAPI} != "no" && ${MK_KERBEROS_SUPPORT} != "no"
|
||||
CFLAGS+= -include krb5_config.h
|
||||
SRCS+= krb5_config.h
|
||||
LIBADD+= gssapi
|
||||
.endif
|
||||
|
||||
|
|
|
|||
|
|
@ -18,8 +18,6 @@ moduli: .MADE
|
|||
LIBADD= ssh util
|
||||
|
||||
.if ${MK_GSSAPI} != "no" && ${MK_KERBEROS_SUPPORT} != "no"
|
||||
CFLAGS+= -include krb5_config.h
|
||||
SRCS+= krb5_config.h
|
||||
LIBADD+= gssapi_krb5 gssapi krb5
|
||||
.endif
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue