Boost logo

Boost-Build :

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


AMDG

Gennadiy Rozental wrote:
> > One of <link>static and <link>shared will always be present in
> > the build properties.
>
> Do you mean C runtime?

No. The C runtime is controlled by <runtime-link>.
When Boost.Build handles <link> it doesn't check
whether you are actually linking to a library.

> > 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.
>
> How do I do this?

e.g.

lib boost_unit_test_framework
  : #sources
    $(UTF_SOURCES).cpp
  : # requirements
  : # default-build
  : # usage-requirements
    <link>shared:<define>BOOST_TEST_DYN_LINK=1
;

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