summaryrefslogtreecommitdiffstats
path: root/secure/usr.sbin
diff options
context:
space:
mode:
authorru <ru@FreeBSD.org>2004-02-07 08:23:48 +0000
committerru <ru@FreeBSD.org>2004-02-07 08:23:48 +0000
commitc6ac567da3c1fa69ae6b225a61de8f82ea1b5fca (patch)
tree1709086a7304df1e7b224e5f5f37bf775a8b5bd2 /secure/usr.sbin
parentc12bb13bb30379f6de760a585c705d0bf54bf90b (diff)
downloadFreeBSD-src-c6ac567da3c1fa69ae6b225a61de8f82ea1b5fca.zip
FreeBSD-src-c6ac567da3c1fa69ae6b225a61de8f82ea1b5fca.tar.gz
Use the default threading library if requested.
Reviewed by: des, deischen
Diffstat (limited to 'secure/usr.sbin')
-rw-r--r--secure/usr.sbin/sshd/Makefile11
1 files changed, 8 insertions, 3 deletions
diff --git a/secure/usr.sbin/sshd/Makefile b/secure/usr.sbin/sshd/Makefile
index f468268..b4ef025 100644
--- a/secure/usr.sbin/sshd/Makefile
+++ b/secure/usr.sbin/sshd/Makefile
@@ -32,10 +32,15 @@ CFLAGS+= -DXAUTH_PATH=\"${X11BASE}/bin/xauth\"
DPADD+= ${LIBCRYPTO} ${LIBCRYPT}
LDADD+= -lcrypto -lcrypt
-.if defined(OPENSSH_USE_POSIX_THREADS) && !defined(NOLIBC_R)
+.if defined(OPENSSH_USE_POSIX_THREADS)
+.if ((${MACHINE_ARCH} == "amd64" || ${MACHINE_ARCH} == "i386" || \
+ ${MACHINE_ARCH} == "ia64") && !defined(NOLIBPTHREAD)) || \
+ ((${MACHINE_ARCH} == "alpha" || ${MACHINE_ARCH} == "sparc64") && \
+ !defined(NOLIBC_R))
CFLAGS+=-DUSE_POSIX_THREADS
-DPADD+= ${LIBC_R}
-LDADD+= -lc_r
+DPADD+= ${LIBPTHREAD}
+LDADD+= -lpthread
+.endif
.endif
.include <bsd.prog.mk>
OpenPOWER on IntegriCloud