Boost logo

Boost-Build :

Subject: Re: [Boost-build] issue with <link>
From: Steven Watanabe (watanabesj_at_[hidden])
Date: 2009-01-03 13:13:33


AMDG

Gennadiy Rozental wrote:
> I have following issue with compilation of one of the unit tests from
> Boost.Test which uses single-header version of Program Execution
> Monitor (no linking, just single included header). Boost.Test Jamfile
> has following lines:
>
> project boost/test
> : source-location ../src
> : requirements <link>shared:<define>BOOST_TEST_DYN_LINK=1
> ...
> : usage-requirements
> <define>BOOST_TEST_NO_AUTO_LINK=1
> <link>shared:<define>BOOST_TEST_DYN_LINK=1
> ...
>
> ...
>
> alias included : : : :
> <toolset>msvc:<asynch-exceptions>on
> ;
>
> <snip>
>
> It looks like <link>shared where applied even though I do not link
> with anything.
>
> The only way to circumvent this I found is to define
>
> alias included : : : :
> <link>static
> <toolset>msvc:<asynch-exceptions>on
> ;
>
> which does not seems right as well.
>
> What is the right solution?

One of <link>static and <link>shared will always be present in
the build properties.

The usage-requirements <link>shared:<define>BOOST_TEST_DYN_LINK=1
should only be specified for the libraries that need it rather than for
the entire project.

In Christ,
Steven Watanabe


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