summaryrefslogtreecommitdiffstats
path: root/secure/usr.sbin
diff options
context:
space:
mode:
authordes <des@FreeBSD.org>2002-12-14 13:54:57 +0000
committerdes <des@FreeBSD.org>2002-12-14 13:54:57 +0000
commit4db7824c37f073b1b658ca9c156812cc94a8bd80 (patch)
treeecdb96282aba70eab2a353235ccb217029378121 /secure/usr.sbin
parent06b0ce4f651a97f9ac03d4ba5be051af78b485a7 (diff)
downloadFreeBSD-src-4db7824c37f073b1b658ca9c156812cc94a8bd80.zip
FreeBSD-src-4db7824c37f073b1b658ca9c156812cc94a8bd80.tar.gz
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
Diffstat (limited to 'secure/usr.sbin')
-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 6cc3478..31a4f02 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}
OpenPOWER on IntegriCloud