Re: -pthread deprecated, but when?

From: Scot W. Hetzel <hetzelsw_at_westbend.net>
Date: Tue, 9 Sep 2003 19:25:01 -0500
From: "Doug Barton" <DougB_at_freebsd.org>
> On Tue, 9 Sep 2003, Matthias Andree wrote:
> > Doug Barton <DougB_at_FreeBSD.org> writes:
> >
> > >         _at_ ${CP} ${WRKSRC}/configure ${WRKSRC}/configure.Patched
> > >         _at_ ${SED} -e 's#-lpthread#${PTHREAD_LIBS}#g' \
> >
> > How about: ${SED} -Ee 's#-l?pthread#${PTHREAD_LIBS}#g' \
> >
> > That's the one necessary to catch -pthread (such as BerkeleyDB) in
> > addition to -lpthread.
>
> You should use whatever is appropriate for your port... I just posted an
> example from one of mine.
>
Also look for PTHREAD_{LIBS/CFLAGS} in your ports configure script.  Then
all you need to do is set CONFIGURE_ENV in the ports Makefile:

    CONFIGURE_ENV+= PTHREAD_LIBS=${PTHREAD_LIBS} \
                    PTHREAD_CFLAGS=${PTHREAD_CFLAGS}

That's how I fixed the security/amavisd port in my ports tree.

Scot
Received on Tue Sep 09 2003 - 15:25:10 UTC

This archive was generated by hypermail 2.4.0 : Wed May 19 2021 - 11:37:22 UTC