From 3be31e5a84ac6409efe88fc3f41b17158aacc7c5 Mon Sep 17 00:00:00 2001 From: MANTANI Nobutaka Date: Sat, 17 Jul 2004 15:15:32 +0000 Subject: Fix configure error caused by boehm-gc with the REDIRECT option. --- www/w3m/Makefile | 15 +++++++++++---- 1 file changed, 11 insertions(+), 4 deletions(-) (limited to 'www/w3m') diff --git a/www/w3m/Makefile b/www/w3m/Makefile index b3fe29205cad..30504a686c30 100644 --- a/www/w3m/Makefile +++ b/www/w3m/Makefile @@ -23,9 +23,6 @@ CONFLICTS?= ja-w3m-0.5.* ja-w3m-img-0.5.* w3m-m17n-0.5.* w3m-img-0.5.* w3m-m17n- GNU_CONFIGURE= yes USE_REINPLACE= yes -CONFIGURE_ENV= DEFS="-I${LOCALBASE}/include ${PTHREAD_CFLAGS}" \ - LIBS="${LIBS} ${PTHREAD_LIBS}" - MAN1= w3m.1 w3mman.1 MANLANG= "" ja @@ -82,6 +79,16 @@ PKGMESSAGE= ${NONEXISTENT} CONFIGURE_ARGS+= --enable-keymap=lynx .endif +.include + +.if ${OSVERSION} < 500016 +CONFIGURE_ENV= DEFS="-I${LOCALBASE}/include ${PTHREAD_CFLAGS}" \ + LIBS="${LIBS} ${PTHREAD_LIBS} -lc_r" +.else +CONFIGURE_ENV= DEFS="-I${LOCALBASE}/include ${PTHREAD_CFLAGS}" \ + LIBS="${LIBS} ${PTHREAD_LIBS} -lc" +.endif + pre-everything:: @${ECHO_MSG} "===>" @${ECHO_MSG} "===> You can enable some features by defining following variables." @@ -144,4 +151,4 @@ post-install: @${CAT} ${PKGMESSAGE} .endif -.include +.include -- cgit v1.2.3