aboutsummaryrefslogtreecommitdiffstats
path: root/devel/boehm-gc
diff options
context:
space:
mode:
authornobutaka <nobutaka@FreeBSD.org>2005-10-10 21:06:07 +0800
committernobutaka <nobutaka@FreeBSD.org>2005-10-10 21:06:07 +0800
commit32a5b9e36c5232fba891dba4972e9209642ab6e2 (patch)
tree1389e156224ec44bb910f164e6302619cc6a6e15 /devel/boehm-gc
parentffe74e5731f6b6a745b06bcb9ff0f70cb88fb1da (diff)
downloadfreebsd-ports-gnome-32a5b9e36c5232fba891dba4972e9209642ab6e2.tar.gz
freebsd-ports-gnome-32a5b9e36c5232fba891dba4972e9209642ab6e2.tar.zst
freebsd-ports-gnome-32a5b9e36c5232fba891dba4972e9209642ab6e2.zip
Link pthread library when WITH_THREADING is defined.
Pointed out by: Nicola Vitale <nivit@email.it>
Diffstat (limited to 'devel/boehm-gc')
-rw-r--r--devel/boehm-gc/Makefile7
1 files changed, 7 insertions, 0 deletions
diff --git a/devel/boehm-gc/Makefile b/devel/boehm-gc/Makefile
index a09c81f9fc7c..4a2c0267858f 100644
--- a/devel/boehm-gc/Makefile
+++ b/devel/boehm-gc/Makefile
@@ -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