Boost logo

Boost-Build :

From: Daniel Schlyder (daniel_at_[hidden])
Date: 2004-05-10 06:20:33


Hi,

-mthreads is added twice when compiling source using MinGW. This seems to be
because MinGW toolset inherits from GCC toolset and both add -mthreads to
CFLAGS when <threading>multi. Also, -mthreads is not added to LINKFLAGS in
gcc-tools.jam, which I think it should be, and then you'd get the same
"problem" when linking.

The attached patch removes addition of -mthreads to both CFLAGS and LINKFLAGS
from mingw-tools.jam and adds -mthreads to LINKFLAGS in gcc-tools.jam.

What do you think?

I've tested it with latest MinGW (release/candidate packages, including just
released GCC 3.4). Diff is against Boost CVS from a few hours ago.

Kind regards,
Daniel Schlyder ------------CD1999730577364 Content-Type: application/octet-stream; name="bbv1-mthreads.diff"
Content-Transfer-Encoding: base64
Content-Disposition: attachment; filename="bbv1-mthreads.diff"

[Attachment content not displayed.] ------------CD1999730577364--


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