mirror of
https://github.com/opnsense/src.git
synced 2026-02-21 00:40:33 -05:00
XAUTH_PATH is normally set (in the upstream build infrastructure) in config.h. We previously set it in ssh and sshd's Makefiles if LOCALBASE is set, and over time have sometimes also defined it in config.h. Leave it unset in config.h and move the CFLAGS logic to to ssh.mk so that it will be set when building all ssh libraries and programs but still be set by LOCALBASE. Reviewed by: jlduran Sponsored by: The FreeBSD Foundation Differential Revision: https://reviews.freebsd.org/D48907 (cherry picked from commit a63701848fe5462c4e8bbff0131bb42979e603ec)
15 lines
320 B
Makefile
15 lines
320 B
Makefile
# Common Make variables for OpenSSH
|
|
|
|
.include <src.opts.mk>
|
|
|
|
SSHDIR= ${SRCTOP}/crypto/openssh
|
|
|
|
CFLAGS+= -I${SSHDIR} -include ssh_namespace.h
|
|
SRCS+= ssh_namespace.h
|
|
|
|
CFLAGS+= -DXAUTH_PATH=\"${LOCALBASE:U/usr/local}/bin/xauth\"
|
|
|
|
.if ${MK_USB} != "no"
|
|
# Built-in security key support
|
|
CFLAGS+= -include sk_config.h
|
|
.endif
|