1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-11-23 00:43:28 +00:00

Respect PTHREAD_LIBS.

Submitted by:	nork
This commit is contained in:
MANTANI Nobutaka 2007-02-03 17:42:00 +00:00
parent 532631db95
commit 216492f9de
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=184047

View File

@ -93,14 +93,14 @@ CONFIGURE_ARGS+= --enable-keymap=lynx
.if defined(WITH_THREADING)
.if ${OSVERSION} < 502102
CONFIGURE_ENV= DEFS="-I${LOCALBASE}/include ${PTHREAD_CFLAGS}" \
LIBS="${LIBS} ${PTHREAD_LIBS} -lc_r"
LIBS="${LIBS} ${PTHREAD_LIBS:C/-pthread/-lc_r/}"
.else
# Use -lpthread instead of ${PTHREAD_LIBS} to link libpthread
# and libc before libgc.
# This is necessary to avoid build error with boehm-gc with REDIRECT and
# THREADING options.
CONFIGURE_ENV= DEFS="-I${LOCALBASE}/include ${PTHREAD_CFLAGS}" \
LIBS="${LIBS} -lpthread -lc"
LIBS="${LIBS} ${PTHREAD_LIBS:C/-pthread/-lpthread/} -lc"
.endif
.else
CONFIGURE_ENV= DEFS="-I${LOCALBASE}/include"