mirror of
https://git.FreeBSD.org/ports.git
synced 2025-01-03 06:04:53 +00:00
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
@ -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 New Issue
Block a user