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:
Dag-Erling Smørgrav 2002-12-14 13:54:57 +00:00
parent d953f52834
commit 11025839d5
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=107862

View File

@ -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}