ports/62899: [PATCH] devel/boost, respect PTHREAD_LIBS
Craig Rodrigues
rodrigc at crodrigues.org
Mon Feb 16 03:50:23 UTC 2004
>Number: 62899
>Category: ports
>Synopsis: [PATCH] devel/boost, respect PTHREAD_LIBS
>Confidential: no
>Severity: serious
>Priority: medium
>Responsible: freebsd-ports-bugs
>State: open
>Quarter:
>Keywords:
>Date-Required:
>Class: update
>Submitter-Id: current-users
>Arrival-Date: Sun Feb 15 19:50:21 PST 2004
>Closed-Date:
>Last-Modified:
>Originator: Craig Rodrigues
>Release: FreeBSD 5.2-CURRENT i386
>Organization:
>Environment:
System: FreeBSD dibbler.crodrigues.org 5.2-CURRENT FreeBSD 5.2-CURRENT #33
>Description:
The devel/boost port does not respect PTHREAD_LIBS in
/usr/ports/Mk/bsd.port.mk. It hardcodes linking -lc_r, when it
should really use whatever is defined by PTHREAD_LIBS, which happens
to be -lpthread in -CURRENT.
>How-To-Repeat:
>Fix:
Index: Makefile
===================================================================
RCS file: /home/ncvs/ports/devel/boost/Makefile,v
retrieving revision 1.13
diff -u -r1.13 Makefile
--- Makefile 15 Jan 2004 13:41:30 -0000 1.13
+++ Makefile 16 Feb 2004 03:44:35 -0000
@@ -51,9 +51,8 @@
do-configure:
# for -pthread options
-.if ${OSVERSION} >= 500016
+ cd ${FILESDIR} && ${CAT} gcc-tools.jam.diff | ${SED} 's/PTHREAD_LIBS/'${PTHREAD_LIBS}'/g' > gcc-tools.jam.diff
cd ${WRKSRC} && patch < ${FILESDIR}/gcc-tools.jam.diff
-.endif
do-build:
cd ${WRKSRC}/tools/build/jam_src && ./build.sh gcc
Index: files/gcc-tools.jam.diff
===================================================================
RCS file: /home/ncvs/ports/devel/boost/files/gcc-tools.jam.diff,v
retrieving revision 1.1
diff -u -r1.1 gcc-tools.jam.diff
--- files/gcc-tools.jam.diff 10 Nov 2003 05:52:33 -0000 1.1
+++ files/gcc-tools.jam.diff 16 Feb 2004 03:44:35 -0000
@@ -9,7 +9,7 @@
+ case FreeBSD :
+ {
+ # for current which doesn't support -pthread
-+ flags gcc LINKFLAGS <threading>multi : -lc_r ;
++ flags gcc LINKFLAGS <threading>multi : PTHREAD_LIBS ;
+ }
case *BSD :
{
>Release-Note:
>Audit-Trail:
>Unformatted:
More information about the freebsd-ports-bugs
mailing list