summaryrefslogtreecommitdiffstats
path: root/secure/usr.sbin
diff options
context:
space:
mode:
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