mirror of
https://github.com/boostorg/boost.git
synced 2025-04-09 14:57:01 +00:00
On Unix, add version to the name of shared libraries even
for --layout=system. [SVN r51288]
This commit is contained in:
parent
0982af4a60
commit
5b007f4d21
1 changed files with 20 additions and 2 deletions
22
Jamroot
22
Jamroot
|
@ -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) ;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue