mirror of
https://git.FreeBSD.org/src.git
synced 2024-11-30 08:19:09 +00:00
Don't build auth-pam.c and auth2-pam.c, auth2-pam-freebsd.c is all we need.
Use pthreads for PAM if the platform supports it and the user asked for it (by setting OPENSSH_USE_POSIX_THREADS) Sponsored by: DARPA, NAI Labs
This commit is contained in:
parent
d953f52834
commit
11025839d5
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=107862
@ -9,7 +9,7 @@ SRCS= sshd.c auth-rhosts.c auth-passwd.c auth-rsa.c auth-rh-rsa.c \
|
||||
auth-skey.c auth-bsdauth.c monitor_mm.c monitor.c \
|
||||
auth2-none.c auth2-passwd.c auth2-pubkey.c \
|
||||
auth2-hostbased.c auth2-kbdint.c \
|
||||
auth-pam.c auth2-pam.c auth2-pam-freebsd.c
|
||||
auth2-pam-freebsd.c monitor_wrap.c monitor_fdpass.c
|
||||
# Portability layer
|
||||
SRCS+= loginrec.c
|
||||
MAN= sshd.8 sshd_config.5
|
||||
@ -41,6 +41,13 @@ CFLAGS+= -DXAUTH_PATH=\"${X11BASE}/bin/xauth\"
|
||||
LDADD+= -lssh -lcrypt -lcrypto -lutil -lz -lwrap ${MINUSLPAM}
|
||||
DPADD+= ${LIBSSH} ${LIBCRYPT} ${LIBCRYPTO} ${LIBUTIL} ${LIBZ} ${LIBWRAP} ${LIBPAM}
|
||||
|
||||
.if defined(OPENSSH_USE_POSIX_THREADS) && \
|
||||
!defined(NOLIBC_R) && ${MACHINE_ARCH} != ia64 && ${MACHINE_ARCH} != sparc64
|
||||
CFLAGS+=-DUSE_POSIX_THREADS
|
||||
LDADD+= -lc_r
|
||||
DPADD+= ${LIBC_R}
|
||||
.endif
|
||||
|
||||
.include <bsd.prog.mk>
|
||||
|
||||
.PATH: ${SSHDIR}
|
||||
|
Loading…
Reference in New Issue
Block a user