RFC: Ports and pthread

Philip Reynolds philip.reynolds at rfc-networks.ie
Tue Aug 5 01:31:13 PDT 2003


Adam Weinberger <adamw at FreeBSD.org> 30 lines of wisdom included:
> >> (08.04.2003 @ 1119 PST): Ulrich Spoerlein said, in 2.1K: <<
> > Therefore I propose a new variable to bsd.port.mk used like this:
> > USE_PTHREAD_HACK=       configure
> > 
> > Which will do the following in post-patch:
> > .for file in ${USE_PTHREAD_HACK}
> >         ${REINPLACE_CMD} "s/-lpthread/${PTHREAD_LIBS}/g" ${WRKSRC}/$file
> > .endfor
> > 
> > And PTHREAD_LIBS either set to -pthread, -lpthread, -lthr or -lc_r.
> >> end of "RFC: Ports and pthread" from Ulrich Spoerlein <<
> 
> Even if it's not a GNOME app, I just use:
> USE_GNOME=	gnomehack
> 
> which accomplishes the same thing, and is already there.

Maybe it would be wise to move this as a separate option and let
USE_GNOME define it? 

I certainly had no idea that USE_GNOME did any such thing (is this
documented anywhere?)

-- 
Philip Reynolds                      | RFC Networks Ltd.
philip.reynolds at rfc-networks.ie      | +353 (0)1 8832063
http://people.rfc-networks.ie/~phil  | www.rfc-networks.ie


More information about the freebsd-ports mailing list