Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 5 Oct 2001 17:28:10 -0400
From:      Pete Fritchman <petef@databits.net>
To:        Andrew Stuart <elitetek@tekrealm.net>
Cc:        freebsd-ports@freebsd.org
Subject:   Re: Vim6 needs pthreads
Message-ID:  <20011005172810.D73810@databits.net>
In-Reply-To: <20011005141207.A85318@freebsd.tekrealm.net>; from elitetek@tekrealm.net on Fri, Oct 05, 2001 at 02:12:07PM -0700
References:  <20011005141207.A85318@freebsd.tekrealm.net>

next in thread | previous in thread | raw e-mail | index | archive | help
++ 05/10/01 14:12 -0700 - Andrew Stuart:
| On Vim6, with x3 it errors out from pthreads.
| 
| heres my slight patch to correct. There may be a better way, but
| this seems to work fine without breaking anything.
| 
| any input would be great.
| 
| --- Makefile.orig       Fri Oct  5 13:45:39 2001
| +++ Makefile    Fri Oct  5 13:48:59 2001
| @@ -38,6 +38,7 @@
|  WRKSRC=
| ${WRKDIR}/vim${PORTVERSION:C/\.[0-9]*$//:S/.//g}/src
|  PATCH_DIST_ARGS=       -d
| ${WRKDIR}/${PORTNAME}${PORTVERSION:C/\.[0-9]*$//:S/.//g} --forward
| --quiet -E ${PATCH_DIST_STRIP}
|  MAKE_ARGS+=    CONF_ARGS="--prefix=${PREFIX} --with-tlib=termlib"
| +MAKE_ENV+=      CFLAGS="${PTHREAD_CFLAGS}" LDFLAGS="${PTHREAD_LIBS}"

Yes, but this overrides the user's CFLAGS settings.  A better idea:

MAKE_ENV+=	CFLAGS="${CFLAGS} ${PTHREAD_CFLAGS}" \
		LDFLAGS=${PTHREAD_LIBS}

(remember, ${PTHREAD_LIBS} already has quotes)

-pete

--
Pete Fritchman [petef@(databits.net|freebsd.org|csh.rit.edu)]
finger petef@databits.net for PGP key

To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-ports" in the body of the message




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20011005172810.D73810>