On Unix, add version to the name of shared libraries even

for --layout=system.


[SVN r51288]
This commit is contained in:
Vladimir Prus 2009-02-17 12:01:17 +00:00
parent 0982af4a60
commit 5b007f4d21

22
Jamroot
View file

@ -350,8 +350,26 @@ rule tag ( name : type ? : property-set )
}
else
{
return [ common.format-name <base> <threading> <runtime>
-$(BUILD_ID) : $(name) : $(type) : $(property-set) ] ;
local result = [ common.format-name
<base>
-$(BUILD_ID)
: $(name) : $(type) : $(property-set) ] ;
# Optionally add version suffix. On NT, library with version suffix
# will not be recognized by linkers. On CYGWIN, we get strage
# duplicate symbol errors when library is generated with version
# suffix. On OSX, version suffix is not needed -- the linker expects
# the libFoo.1.2.3.dylib format. AIX linkers do not accept version
# suffixes either. Pgi compilers can not accept library with version
# suffix.
if $(type) = SHARED_LIB &&
( ! ( [ $(property-set).get <target-os> ] in windows cygwin darwin aix ) &&
! ( [ $(property-set).get <toolset> ] in pgi ) )
{
result = $(result).$(BOOST_VERSION) ;
}
return $(result) ;
}
}
}