[Libwebsockets] soname in CMake

"Andy Green (林安廸)" andy at warmcat.com
Wed Feb 13 02:37:01 CET 2013


On 13/02/13 00:31, the mail apparently from Joakim Söderberg included:
> Hello Andy!
>
> I've added the change you requested. And since setting the soname kind
> of only makes sense when compiling the shared version of the library, I
> also added support for building that in the CMake project on both
> Windows and unix (previous version was static only).
>
> Tested on Windows, Linux (debian) and OSX.
>
> git://github.com/JoakimSoderberg/libwebsockets.git
> <http://github.com/JoakimSoderberg/libwebsockets.git>
> branch cmake-version-info

Great, that's exactly what's needed.  I pushed the three patches.

Thanks a lot

-Andy

> /Joakim
>
>
> On Tue, Feb 12, 2013 at 3:54 AM, "Andy Green (林安廸)" <andy at warmcat.com
> <mailto:andy at warmcat.com>> wrote:
>
>     Hi Joakim -
>
>     I added a patch to bump the version to 1.2 and the soname for the
>     library to so.3.0.0
>
>     http://git.libwebsockets.org/__cgi-bin/cgit/libwebsockets/__commit/?id=__48258817a087579aa3adb27b442f07__b9961eebe0
>     <http://git.libwebsockets.org/cgi-bin/cgit/libwebsockets/commit/?id=48258817a087579aa3adb27b442f07b9961eebe0>
>
>     but when I tried to update the CMakelists.txt the same I couldn't
>     see how it sets the soname.
>
>     All it needs to do is add
>
>     -version-info 3:0:0
>
>     to LDFLAGS used to make the library.  Since we're making small
>     changes to the api, it really needs to make a break with the old
>     soname or apps will crash when they update the library.  It only
>     needs it on the library link action.
>
>     Can you make a small patch to add this to the CMake side?
>
>     Thanks,
>
>     -Andy
>
>




More information about the Libwebsockets mailing list