Date: Sun, 15 Feb 2004 22:48:16 -0500 (EST) From: Craig Rodrigues <rodrigc@crodrigues.org> To: FreeBSD-gnats-submit@FreeBSD.org Cc: barner@gmx.de Subject: ports/62899: [PATCH] devel/boost, respect PTHREAD_LIBS Message-ID: <200402160348.i1G3mGJ7046848@h00609772adf0.ne.client2.attbi.com> Resent-Message-ID: <200402160350.i1G3oMXu009641@freefall.freebsd.org>
next in thread | raw e-mail | index | archive | help
>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:
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200402160348.i1G3mGJ7046848>