Boost logo

Boost-Build :

From: David Abrahams (dave_at_[hidden])
Date: 2003-03-21 20:48:11


"Gary Powell" <powellg_at_[hidden]> writes:

> --- In jamboost_at_[hidden], David Abrahams <dave_at_b...> wrote:

>> There is no <link> feature in Boost.Build v1, and even if there were,
>> you'd need a slash.
>
> Sorry I was confused by an earlier post that mentioned
> <link>static.

That post was about BBv2 (prerelease software)

> I made the assumption that it worked like the <instruction-set> stuff.

In BBv2, it does (roughly speaking).

>> > but it still made an .so (shared) library.
>>
>> Which library were you building? I'm guessing Boost.Threads because
>> it conspicuously doesn't have a static build on Windows (you can't do
>> TLS without a DLL).
>
> I'm using Linux and is that also true?

According to libs/thread/build/Jamfile, yes. Notice that there is no
"lib" target declared there, only a "dll" target.

> But it's ok, as we are using some other thread management package.
> But I thought I also saw it for regex as well.

That Jamfile builds both shared and static libs.

> The gcc.mak file for it has a link line of -shared. I did try and
> build it using -static and that worked but I am also wondering why
> we don't build both.

I can't be responsible for what people choose to do with make ;-)

-- 
Dave Abrahams
Boost Consulting
www.boost-consulting.com
 

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