|
Boost-Build : |
From: Roland Schwarz (roland.schwarz_at_[hidden])
Date: 2007-08-29 03:59:50
Say I have a lib targets:
lib program_options : $(sources) :
<define>PROGRAM_OPTIONS_DYN_LINK:<link>shared ;
lib coollib : $(cool_srces) : <define>COOL_DYN_LINK:<link>shared ;
and an exe target:
exe myapp : mysrc.cpp program_options coollib :
<define>PROGRAM_OPTIONS_DYN_LINK ;
The idea is to control which library is been linked static, and which is
to be linked as shared lib.
However, although Boost.Build does not complain, the conditional doesn't
seem to evaluate.
Any hints welcome!
Btw.: What is the recommended way to specify mixed link type at all?
I.e.
exe myapp : src.cpp lib1 lib2 ;
How do I specify lib1 is to link statically while lib2 shared?
Roland aka speedsnail
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