Boost logo

Boost-Build :

From: Gulevich Vasili Victorovich (V.V.Gulevich_at_[hidden])
Date: 2008-08-21 11:36:17


Hello.
I was unable to link with static version of boost libraries for
stlport 5.1.5 without the following patch of tools/stlport.jam:
---------------------
*** stlport_orig.jam 2007-11-15 10:31:06.000000000 +0600
--- stlport.jam 2008-08-21 22:24:50.000000000 +0700
***************
*** 228,233 ****
--- 228,238 ----
              usage-requirements +=
                  <define>_STLP_USE_DYNAMIC_LIB=1 ;
          }
+ if [ $(rproperties).get <runtime-link> ] = "static"
+ {
+ usage-requirements +=
+ <define>_STLP_USE_STATIC_LIB=1 ;
+ }
          if [ $(rproperties).get <stdlib-stlport:extensions> ] = noext
          {
              usage-requirements +=
---------------------
The idea of this addition was taken from the following piece:
---------------------
        if [ $(rproperties).get <runtime-link> ] = "shared"
        {
            usage-requirements +=
                <define>_STLP_USE_DYNAMIC_LIB=1 ;
        }
---------------------

Sincerely, Basilevs


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