From 8ffb7b9c096e09752506f71ec07dcbf9aa8d0ef1 Mon Sep 17 00:00:00 2001 From: nobutaka Date: Wed, 17 Nov 2004 18:24:46 +0000 Subject: Read the options file of boehm-gc to check necessity of a thread library. --- www/w3m/Makefile | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) (limited to 'www/w3m') diff --git a/www/w3m/Makefile b/www/w3m/Makefile index 0246b57..e08be27 100644 --- a/www/w3m/Makefile +++ b/www/w3m/Makefile @@ -82,7 +82,12 @@ CONFIGURE_ARGS+= --enable-keymap=lynx .include -.if ${OSVERSION} < 502102 +.if exists(${PORT_DBDIR}/boehm-gc/options) +.include "${PORT_DBDIR}/boehm-gc/options" +.endif + +.if defined(WITH_THREADING) +.if ${OSVERSION} < 502102 CONFIGURE_ENV= DEFS="-I${LOCALBASE}/include ${PTHREAD_CFLAGS}" \ LIBS="${LIBS} ${PTHREAD_LIBS} -lc_r" .else @@ -93,6 +98,7 @@ CONFIGURE_ENV= DEFS="-I${LOCALBASE}/include ${PTHREAD_CFLAGS}" \ CONFIGURE_ENV= DEFS="-I${LOCALBASE}/include ${PTHREAD_CFLAGS}" \ LIBS="${LIBS} -lpthread -lc" .endif +.endif pre-everything:: @${ECHO_MSG} "===>" -- cgit v1.1