Boost logo

Boost :

Subject: Re: [boost] [atomic] building with --layout=system, mingw, bug #7482
From: Andrey Semashev (andrey.semashev_at_[hidden])
Date: 2013-01-04 06:05:31


On Fri, Jan 4, 2013 at 2:20 AM, Tim Blechmann <tim_at_[hidden]> wrote:
> hi,
>
> i need some help with resolving issue #7482: for some reason it seems to
> build a static libboost_atomic, although it has to be a shared library.

It can be built either way, depending on what the user requests.

> could someone with more insights in this platform have a look, what's
> going wrong (and why the library is static)? unfortunately i neither
> have access to mingw, nor am i too familiar with the boost build
> infrastructure ...

I tried building the current release with these flags and successfully
compiled the following libs:

libboost_atomic-mt.a
libboost_atomic-mt-d.a

along with other static boost libs. I suppose, by default bjam builds
static libs on mingw; you have to specify link=shared to build dlls
(this also worked for me).

I did some fixes to atomic jamfile in revision 81834, perhaps those
fixes resolved the problem in the ticket. Or I just failed to
reproduce the problem.


Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk