aboutsummaryrefslogtreecommitdiff
path: root/secure
diff options
context:
space:
mode:
authorDag-Erling Smørgrav <des@FreeBSD.org>2002-12-14 13:54:57 +0000
committerDag-Erling Smørgrav <des@FreeBSD.org>2002-12-14 13:54:57 +0000
commit11025839d5b1d9c64c24bf2d60ca8d5c199acc68 (patch)
treeecdb96282aba70eab2a353235ccb217029378121 /secure
parentd953f52834f657daa2430f748401f9ba9a8b3798 (diff)
downloadsrc-11025839d5b1d9c64c24bf2d60ca8d5c199acc68.tar.gz
src-11025839d5b1d9c64c24bf2d60ca8d5c199acc68.zip
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
Notes
Notes: svn path=/head/; revision=107862
Diffstat (limited to 'secure')
-rw-r--r--secure/usr.sbin/sshd/Makefile9
1 files changed, 8 insertions, 1 deletions
diff --git a/secure/usr.sbin/sshd/Makefile b/secure/usr.sbin/sshd/Makefile
index 6cc3478b9bf4..31a4f0208044 100644
--- a/secure/usr.sbin/sshd/Makefile
+++ b/secure/usr.sbin/sshd/Makefile
@@ -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}