1
0
mirror of https://git.FreeBSD.org/src.git synced 2025-01-28 16:43:09 +00:00

Always link with -lpthread, not -lc_r, because platforms that don't have

full KSE support still have -lpthread as an alias for -lc_r.  The only
thing that's different is the name of the knob that turns it off.

Pointed out by:	ru@
This commit is contained in:
Dag-Erling Smørgrav 2004-09-22 14:36:12 +00:00
parent 3a710cbaba
commit abb3768b5c
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=135572

View File

@ -59,8 +59,8 @@ BIND_LDADD= -lbind9 -ldns -lisccc -lisccfg -lisc -llwres
# Link against crypto library
.if !defined(NOCRYPT)
CRYPTO_DPADD+= ${LIBCRYPTO}
CRYPTO_LDADD+= -lcrypto
CRYPTO_DPADD= ${LIBCRYPTO}
CRYPTO_LDADD= -lcrypto
.endif
# Link against POSIX threads library
@ -68,12 +68,11 @@ CRYPTO_LDADD+= -lcrypto
.if defined(NOLIBC_R)
.error "BIND requires libc_r - define NO_BIND, or undefine NOLIBC_R"
.endif
PTHREAD_DPADD+= ${LIBC_R}
PTHREAD_LDADD+= -lc_r
.else
.if defined(NOLIBPTHREAD)
.error "BIND requires libpthread - define NO_BIND, or undefine NOLIBPTHREAD"
.endif
PTHREAD_DPADD+= ${LIBPTHREAD}
PTHREAD_LDADD+= -lpthread
.endif
PTHREAD_DPADD= ${LIBPTHREAD}
PTHREAD_LDADD= -lpthread