From: Vladimir Prus (ghost_at_[hidden])
Date: 2003-07-08 08:13:12
> i was trying to build boost.thread when it said i was building the
> library without multithreading support.. i was using the gcc toolset,
> bbv2, and i can't find any multi threading options related to gcc in
> gcc.jam, while the other compilers seems to have it working. Is this
> something that is missing intentionaly? I can see that bbv1 have the
> multi threading options implemented... is it possible to include
> multi thread support for gcc in bbv2 too?
I've just comitted a change that should enable threading support with gcc.
Make sure you building with <threading>multi (e.g.)
In case you want to experinemt now, and not wait for SF to update their
anonymous CVS server, I attach the patch.
--Boundary-00=_oNsC/3VjOnjgVCn Content-Type: text/x-diff;
Content-Disposition: attachment; filename="threading.diff"
RCS file: /cvsroot/boost/boost/tools/build/tools/gcc.jam,v
retrieving revision 1.3
diff -u -r1.3 gcc.jam
--- gcc.jam 11 Jun 2003 10:27:46 -0000 1.3
+++ gcc.jam 8 Jul 2003 13:09:01 -0000
@@ -65,6 +65,8 @@
flags gcc.compile OPTIONS <inlining>on : -Wno-inline ;
flags gcc.compile OPTIONS <inlining>full : -finline-functions -Wno-inline ;
+flags gcc.compile OPTIONS <threading>multi : -pthread ;
flags gcc.compile OPTIONS <debug-symbols>on : -g ;
flags gcc.compile OPTIONS <profiling>on : -pg ;
Boost-Build list run by bdawes at acm.org, david.abrahams at rcn.com, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk