Boost logo

Boost-Build :

From: Vladimir Prus (ghost_at_[hidden])
Date: 2006-02-28 04:53:07

On Tuesday 28 February 2006 12:46, MANSION, James, FM wrote:
> Sometimes I wish to create DLLs by assembling code from static libraries -

So, if first create N static libraries, and then link them together into one
DLL, right?

> i.e. I need to compile code using the switches that are used for creating
> shared libraries, but then create a static library.

This sounds like you create N DLLS and then link them into one static library.
I'm confused, can you clarify what you want exactly.

> And then I want to define what entry points the DLL will have and link in
> the support modules from these static libraries, to create the DLL.

> How can I do that in Boost Build?

Well, something like:

    lib a : a.cpp : <link>static ;
    lib b : a : <link>shared ;

I'm not sure about flags for a.cpp. On Linux, the above won't add -fPIC, but
this is inefficiency, not a show-stopper. On Windows -- what flags
specifically should be there?

- Volodya

Boost-Build list run by bdawes at, david.abrahams at, gregod at, cpdaniel at, john at