From: Jared Riley (jkriley_at_[hidden])
Date: 2008-04-01 14:40:57
I want my end product to be a shared library. The intermediate results
for each directory should be a static library.
It seems like the way to do it by hand would be using the
--whole-library option to the linker. It looks like I have to put a
--no-whole-library option after the library as well though. The only
example of that I could find was using a custom generator. I'm not sure
I want to go down that path, since this was supposed to be a one day thing.
Vladimir Prus wrote:
> On Friday 28 March 2008 05:15:02 Jared Riley wrote:
>> I'm attempting to convert a project from Make to Boost.Build (2.0-m12).
>> The output of the project is a shared library.
>> The directory structure of the project is something like this:
>> --> sub1
>> | |
>> | --> sub11
>> | | |
>> | | --> a.cpp
>> | | --> b.cpp
>> | |
>> | --> sub12
>> | |
>> | --> c.cpp
>> | --> d.cpp
>> --> sub2
>> Currently, the makefile creates a directory top/build, and compiles
>> *.cpp into that directory. Then it links top/build/*.o into top.so and
>> it's done.
>> Now, what I tried to do with Boost.Build, and I can't get to work the
>> way I want is the following:
>> lib sub11 : [ glob *.cpp ] : <link>static ;
>> lib sub1 : sub11 sub12 : <link>static ;
> So, you are trying to create a shared library out of two other shared
> libraries? This is not supported by any compiler I know.
> Can you try:
> alias sub1 : sub11 sub12 ;
> - Volodya
> Unsubscribe & other changes: http://lists.boost.org/mailman/listinfo.cgi/boost-build
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