Boost logo

Boost-Build :

From: Jürgen Hunold (hunold+lists.Boost_at_[hidden])
Date: 2003-11-06 05:38:40


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Hi !

The attached patch adds -pthread to gcc command line when
<threading>multi is set.
Without this, boost::thread won't compile.
V1 already adds -pthread, so I think this is the right solution for V2,
too.
Without -pthread , boost.config fails to detect threading API and
#undefs BOOST_HAS_THREADS somewhere in the depths...

Yours,

Jürgen

- --
* Dipl.-Math. Jürgen Hunold ! Institut für Verkehrswesen, Eisenbahnbau
* voice: ++49 511 762-2529 ! und -betrieb, Universität Hannover
* fax : ++49 511 762-3001 ! Appelstrasse 9a, D-30167 Hannover
* hunold_at_[hidden] ! www.ive.uni-hannover.de
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.2-rc1-SuSE (GNU/Linux)

iD8DBQE/qiS2ljbJ/LLrxrYRAmCSAJ49M2dhGu21rZOOt8rxEEuIrsaaXACgsYof
pTl7SNwwgxIomiKSVzlAyRg=
=rEYW
-----END PGP SIGNATURE-----
 --Boundary-00=_zSiq/N3+PimxalF Content-Type: text/x-diff;
charset="iso-8859-15";
name="gcc.jam.diff"
Content-Transfer-Encoding: 7bit
Content-Disposition: attachment;
filename="gcc.jam.diff"

Index: tools/gcc.jam
=================================RCS file: /cvsroot/boost/boost/tools/build/v2/tools/gcc.jam,v
retrieving revision 1.6
diff -u -3 -p -r1.6 gcc.jam
--- tools/gcc.jam 22 Oct 2003 16:18:07 -0000 1.6
+++ tools/gcc.jam 6 Nov 2003 10:33:05 -0000
@@ -71,7 +71,9 @@ flags gcc.compile OPTIONS <inlining>full
flags gcc.compile OPTIONS <debug-symbols>on : -g ;
flags gcc.compile OPTIONS <profiling>on : -pg ;

+flags gcc.compile OPTIONS <threading>multi : -pthread ;
+
flags gcc.compile OPTIONS <cflags> ;
flags gcc.compile.c++ OPTIONS <cxxflags> ;
flags gcc.compile DEFINES <define> ;
 --Boundary-00=_zSiq/N3+PimxalF--


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