Boost logo

Boost-Build :

Subject: Re: [Boost-build] b2 generation of boundnames
From: Stefan Seefeld (stefan_at_[hidden])
Date: 2018-12-20 03:43:10


On 2018-12-19 22:05, Steven Watanabe via Boost-build wrote:

> Boost.Build works the other way around.
> That is, <link>shared propagates from the
> executable to the library, not from the
> library to the executable. The only way
> to link to both a static and a shared library
> is if one of the libraries explicitly overrides
> the value of <link> that it receives.
>
> Example:
>
> Jamroot:
> lib static : static.cpp : <link>static ;
> lib shared : shared.cpp : <link>shared ;
> exe main : main.cpp static shared ;
>
> $ b2 link=static # builds link-static/main.o
> $ b2 link=shared # builds link-shared/main.o

Ah, so had the two libraries `static` and `shared` not explicit `link`
properties, they would both be compiled as `shared` and `static` libs
respectively in the two invocations ?

Thanks,

Stefan

-- 
      ...ich hab' noch einen Koffer in Berlin...
    



signature.png

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