mirror of
https://github.com/opnsense/src.git
synced 2026-06-09 08:43:19 -04:00
Use the default threading library if requested.
Reviewed by: des, deischen
This commit is contained in:
parent
7e39a38ec9
commit
9ee9ecea00
1 changed files with 8 additions and 3 deletions
|
|
@ -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>
|
||||
|
|
|
|||
Loading…
Reference in a new issue