|
Boost Interest : |
Subject: Re: [Boost-cmake] Configuration for sonames for the boost dynamic libraries on Unix
From: Denis Arnaud (denis.arnaud_boost_at_[hidden])
Date: 2009-10-28 16:05:36
2009/10/28 troy d. straszheim <troy_at_[hidden]>
> Would it be possible to have the option, with CMake build, to use a
>> more conventional soname, so that Linux distribution packagers
>> (Debianers and RPM-based packagers such as me, for instance) be
>> happy (i.e., have less extra code to write)?
>>
>> So, like this (?):
>
> % ls -l build/lib
> total 1352
> libboost_iostreams-mt-d.a
> libboost_iostreams-mt-d.so -> libboost_iostreams-mt-d.so.1.41*
> libboost_iostreams-mt-d.so.1.41 -> libboost_iostreams-mt-d.so.1.41.0*
> libboost_iostreams-mt-d.so.1.41.0*
> libboost_iostreams-mt.a
> libboost_iostreams-mt.so -> libboost_iostreams-mt.so.1.41*
> libboost_iostreams-mt.so.1.41 -> libboost_iostreams-mt.so.1.41.0*
> libboost_iostreams-mt.so.1.41.0*
>
Yes, exactly :)
And the soname would read something like:
$ readelf -a /usr/lib/libboost_date_time-mt.so | grep -i soname
0x0000000e (SONAME) Library soname:
[libboost_date_time-mt.so.4]
(that example is taken from Fedora 11, with Boost 1.37.0; the soname version
is fixed within the RPM specification file).