« Return to Thread: Building Boost 1.33.1 with different #defines for release and debug

Re: Building Boost 1.33.1 with different #defines for release and debug

by Vladimir Prus :: Rate this Message:

Reply to Author | View in Thread

Ben Pope wrote:

> NOTE: This is a duplicate of a post to boost.users where I got no
> response for 24 hours, I'm reposting here to hit the correct audience.
>
> Hi all,
>
> I'm sure this must have been covered before, but I am completely
> unable to find what I'm after, so apologies if that is the case.
>
> I seem to have a feeling that BBv2 as shipped with 1.33.1 is not
> completely ready for compiling with msvc 8 on Windows with
> autolinking, but I'm not sure where I go that from.

1.33.1? I would say that autolink is not likely to work with V2
is that release.

> What I would like to do is build the following configurations with VC8:
>  * debug with shared libraries
>  * release shared and static libraries with _SECURE_SCL=0 defined.
>
> Can that be done in a single call of bjam?  I don't mind if we get
> debug static at the same time.
>
> And for completeness and the sake of comparison (and for when we move
> to 1.34) what is the equivalent with BBv2?  I've noticed that there is
> some conditional stuff:
> <variant>release:<define>_SECURE_SCL=0
> But couldn't work out how to do it on the command line, do I need to
> create some jam config files?

In 1.34, you'd have to:

1. Add

        <toolset>msvc:<define>_SECURE_SCL_0

to 'requirements' section in boost_root/Jamfile

2. Say

   bjam debug link=shared --prefix=whatever install toolset=msvc

HTH,
Volodya


_______________________________________________
Unsubscribe & other changes: http://lists.boost.org/mailman/listinfo.cgi/boost-build

 « Return to Thread: Building Boost 1.33.1 with different #defines for release and debug