|
Boost-Build : |
From: Markus Schöpflin (markus.schoepflin_at_[hidden])
Date: 2002-10-10 08:05:11
David Abrahams wrote:
> Markus Sch?pflin <markus.schoepflin_at_[hidden]> writes:
>
>> Is there a way to tell boost.build to link some libraries static
>> and some others dynamic when creating an executable?
>
> I don't understand the question. There's a way to tell it to build
> static libraries:
>
> lib libname1 : source1.cpp ... ;
>
> and a way to tell it to build dynamic libraries:
>
> dll libname2 : source2.cpp ... ;
>
> and a way to link them into an exe:
>
> exe foo : source3.cpp <lib>libname1 <dll>libname2 ;
>
> HTH?
Sorry for the confusing question... I was refering to exteral
libraries. For example, my application links with oracle, openssl and
zlib. I need it to link with oracle dynamically and with openssl and
zlib statically.
The linker command line therefore must contain something like this:
-bdynamic -loracle -bstatic -lopenssl -lz -bdynamic
I don't see a way to do this.
Markus
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