Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 20 Sep 2003 20:03:24 -0500
From:      "Scot W. Hetzel" <hetzelsw@westbend.net>
To:        "Dan Naumov" <dan.naumov@ofw.fi>, <freebsd-current@freebsd.org>
Subject:   Re: Getting -pthread support back into local source tree
Message-ID:  <004b01c37fdc$2bf5fd60$13fd2fd8@Admin02>
References:  <1064101768.13585.4.camel@localhost.localdomain> <003201c37fd6$e2e0fb70$13fd2fd8@Admin02>

next in thread | previous in thread | raw e-mail | index | archive | help

[-- Attachment #1 --]
From: "Scot W. Hetzel" <hetzelsw@westbend.net>
> From: "Dan Naumov" <dan.naumov@ofw.fi>
> > Seeing as -pthread support has been removed from -CURRENT breaking
> > _LOTS_ of ports, is it possible to "get it back" into a local source
> > tree ? If so, how ? Thanks in advance.
> >
> All you need to do is add:
>
>     CONFIGURE_ENV+=    PTHREAD_LIBS=${PTHREAD_LIBS} \
>
PTHREAD_CFLAGS=${PTHREAD_CFLAGS}
>
A better place for the above is to add it to bsd.port.mk where
PTHREAD_{CFLAGS,LIBS} are defined. With the attached patch.

Scot


[-- Attachment #2 --]
Index: bsd.port.mk
===================================================================
RCS file: /home/ncvs/ports/Mk/bsd.port.mk,v
retrieving revision 1.466
diff -u -r1.466 bsd.port.mk
--- bsd.port.mk	29 Aug 2003 02:26:02 -0000	1.466
+++ bsd.port.mk	21 Sep 2003 00:56:11 -0000
@@ -1634,8 +1634,10 @@
 PTHREAD_CFLAGS=	-D_THREAD_SAFE
 PTHREAD_LIBS=		-pthread
 .else
-PTHREAD_CFLAGS=	-D_THREAD_SAFE
-PTHREAD_LIBS=		-lc_r
+PTHREAD_CFLAGS?=	-D_THREAD_SAFE
+PTHREAD_LIBS?=		-lc_r
+CONFIGURE_ENV+=	PTHREAD_CFLAGS=${PTHREAD_CFLAGS} \
+		PTHREAD_LIBS=${PTHREAD_LIBS}
 .endif
 
 .if exists(/usr/bin/fetch)

Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?004b01c37fdc$2bf5fd60$13fd2fd8>