Boost logo

Boost Interest :

Subject: Re: [Boost-cmake] Configuration for sonames for the boost dynamic libraries on Unix
From: troy d. straszheim (troy_at_[hidden])
Date: 2009-10-28 16:26:03


Denis Arnaud wrote:
> 2009/10/28 troy d. straszheim <troy_at_[hidden]
> <mailto: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).
>

% readelf -a build/lib/libboost_iostreams-mt.so | grep SONAME
  0x000000000000000e (SONAME) Library soname:
[libboost_iostreams-mt.so.1.41]

OK?

-t


Boost-cmake 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