From 32a5b9e36c5232fba891dba4972e9209642ab6e2 Mon Sep 17 00:00:00 2001 From: nobutaka Date: Mon, 10 Oct 2005 13:06:07 +0000 Subject: Link pthread library when WITH_THREADING is defined. Pointed out by: Nicola Vitale --- devel/boehm-gc/Makefile | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'devel/boehm-gc') diff --git a/devel/boehm-gc/Makefile b/devel/boehm-gc/Makefile index a09c81f..4a2c026 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 -- cgit v1.1