diff --git a/src/tools/stlport.jam b/src/tools/stlport.jam
index 3e83d7365..00b3a2804 100644
--- a/src/tools/stlport.jam
+++ b/src/tools/stlport.jam
@@ -10,7 +10,7 @@
# The subfeature value 'hostios' means to use host compiler's iostreams.
#
# The specific version of stlport is selected by features:
-# The feature selects between static and shared library
+# The feature selects between static and shared library
# The on selects STLPort with debug symbols
# and stl debugging.
# There's no way to use STLPort with debug symbols but without
@@ -124,7 +124,7 @@ class stlport-target-class : basic-target
# STLport host IO streams no longer supported. So we always
# need libraries.
- # name: stlport(stl)?[dg]?.M.R
+ # name: stlport(stl)?[dg]?(_static)?.M.R
local name = stlport ;
if [ feature.get-values : $(raw) ] = "on"
{
@@ -136,6 +136,12 @@ class stlport-target-class : basic-target
case * : name += d ;
}
}
+
+ if [ feature.get-values : $(raw) ] = "static"
+ {
+ name += _static ;
+ }
+
name += .$(self.version.5) ;
name = $(name:J=) ;
@@ -217,7 +223,7 @@ class stlport-target-class : basic-target
_STLP_DEBUG=1
_STLP_DEBUG_UNINITIALIZED=1 ;
}
- if [ $(rproperties).get ] = "on"
+ if [ $(rproperties).get ] = "shared"
{
usage-requirements +=
_STLP_USE_DYNAMIC_LIB=1 ;