|
Boost-Build : |
Subject: Re: [Boost-build] Change shared library soname format
From: Vladimir Prus (vladimir.prus_at_[hidden])
Date: 2016-04-04 10:49:45
On 4/4/2016 1:20 PM, Marek Skalický wrote:
> Hi,
> is there any possibility to change a format of shared library names?
>
> I would like to build libraries with name:
> libboost_filesystem.so.prefix.x.y.z
>
> (I would like to add a prefix to major soname number)
Marek,
there's no option at present to do what you need. The naming is controlled by boostcpp.jam in Boost root,
function 'tag', specifically around line 139 that say:
result = [ common.format-name
<base>
-$(BUILD_ID)
: $(name) : $(type) : $(property-set) ] ;
and then later:
result = $(result).$(BOOST_VERSION) ;
So, you can add a build id after baseline, but not inside the version. You can adjust this code to
achieve your behaviour easily, though, say:
result = $(result).prefix$(BOOST_VERSION) ;
-- Vladimir Prus http://vladimirprus.com
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