Link pthread library when WITH_THREADING is defined.
Pointed out by: Nicola Vitale <nivit@email.it>
This commit is contained in:
parent
1a0f5a4680
commit
ce7db9ca1a
Notes:
svn2git
2021-03-31 03:12:20 +00:00
svn path=/head/; revision=144813
1 changed files with 7 additions and 0 deletions
|
@ -29,6 +29,13 @@ OPTIONS= REDIRECT "Define malloc(3)-family replacements" off \
|
|||
|
||||
.if defined(WITH_THREADING)
|
||||
CONFIGURE_ARGS+= --enable-threads=posix --enable-thread-local-alloc
|
||||
.if ${OSVERSION} < 502102
|
||||
CONFIGURE_ENV= CFLAGS="${CFLAGS} ${PTHREAD_CFLAGS}" \
|
||||
LIBS="${LIBS} -lc_r"
|
||||
.else
|
||||
CONFIGURE_ENV= CFLAGSS="${CFLAGS} ${PTHREAD_CFLAGS}" \
|
||||
LIBS="${LIBS} -lpthread"
|
||||
.endif
|
||||
.if defined(WITH_PARALLEL_MARK)
|
||||
CONFIGURE_ARGS+= --enable-parallel-mark
|
||||
.endif
|
||||
|
|
Loading…
Reference in a new issue