Boost logo

Boost-Build :

From: K. Noel Belcourt (kbelco_at_[hidden])
Date: 2007-02-19 18:48:19


Hi,

I want to force <runtime-link>static whenever I build <toolset>gcc
and I'm <link>static. I've tried adding this to my Jamroot project
but it doesn't seem to work. Does anyone know how to express this
kind of dependency?

[ in Jamroot ]

project
   : requirements
     <toolset>gcc:<link>static:<runtime-link>static
   ;

There's an example in the user documentation but it doesn't quite do
what I want.

lib util
   : util.cpp
   : <toolset>msvc:<link>static
     <link>static:<define>STATIC_LINK
   ;

I don't want to always force gcc to link static, just want to force
the runtime to link static if building gcc and already link=static
specified by the user.

Thanks.

-- Noel


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