Subject: Re: [Boost-build] how can we set the compiler options when using bjam for application building
From: Steven Watanabe (watanabesj_at_[hidden])
Date: 2012-06-28 23:35:37
On 06/28/2012 08:14 PM, Ganesh Borse wrote:
> I am trying to use bjam for application build on Windows with VS9.0.
> I found that if I follow the step given at "
> http://www.boost.org/boost-build2/doc/html/bbv2/installation.html", the
> boost.build configures the MSVC compiler to some default compiler options.
> E.g., it sets multi-threaded DLL linking (/MD, /MDd) and so on.
> But, if I want to override these default compiler options, say I want to
> use single-threaded static linking (/MT and /MTd instead of /MD, /MDd), how
> can I change these options?
> I gave <link>static in jamroot file and also tried to give "link=static" at
> bootstrap.bat, but still I can see that "cl.exe" is using "/MD".
What you want is runtime-link=static.
link=static controls libraries built
> How can we change the flags passed to MSVC compiler, linker for different
> variants like debug, release, and different architectures?
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