mirror of
https://github.com/boostorg/boost.git
synced 2025-04-14 00:50:40 +00:00
Don't ever add version *suffix* to static or import libraries.
[SVN r33249]
This commit is contained in:
parent
eee7648323
commit
20298c9872
1 changed files with 10 additions and 8 deletions
18
Jamfile.v2
18
Jamfile.v2
|
@ -131,15 +131,17 @@ rule tag ( name : type ? : property-set )
|
|||
|
||||
local version-tag = [ MATCH "^([^.]+)[.]([^.]+)" : $(BOOST_VERSION[1]) ] ;
|
||||
version-tag = $(version-tag:J="_") ;
|
||||
|
||||
# On NT, library with version suffix won't 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 expets
|
||||
# libFoo.1.2.3.dylib format.
|
||||
# AIX linkers don't accept version suffixes either.
|
||||
if [ $(property-set).get <os> ] in NT CYGWIN MACOSX AIX
|
||||
|
||||
# Optionally add version suffix.
|
||||
if $(type) != SHARED_LIB ||
|
||||
[ $(property-set).get <os> ] in NT CYGWIN MACOSX AIX
|
||||
{
|
||||
# On NT, library with version suffix won't 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 expets
|
||||
# libFoo.1.2.3.dylib format.
|
||||
# AIX linkers don't accept version suffixes either.
|
||||
return $(name:B)-$(version-tag)$(name:S) ;
|
||||
}
|
||||
else
|
||||
|
|
Loading…
Add table
Reference in a new issue