[Scons-users] How to install a versioned shared library correctly?

Bill Deegan bill at baddogconsulting.com
Sat Aug 5 15:16:00 EDT 2017


Setting the SONAME is the wrong way to resole your issue.

Please post you SConstruct/SConscript, preferably as a gist or equivalent
so we can edit it and fix it.

-Bill

On Sat, Aug 5, 2017 at 11:22 AM, edA-qa mort-ora-y <eda-qa at disemia.com>
wrote:

> I think I have it. I must use the fully versioned name for the source
> file, so in this case:
>
> libs = env.InstallVersionedLib( '.', env.Glob( '$ABS_BUILD_DIR/*.so.0.0.1'
> ) )
>
>
> Then all the symlinks are created.
>
> It's odd though, using just `*.so.0` isn't enough to create any links at
> all. :/
>
>
> On 05/08/17 20:15, edA-qa mort-ora-y wrote:
> > Thanks to the help pointing me towards SONAME I have my linking working
> > a bit better. I've set the `SHLIBVERSION` which appears to give all the
> > libraries a default soname with versioned links.  It's a bit more than
> > just having a specific soname, but it appears to be the correct way to
> go.
> >
> > With this I've also added an RPATH that includes $ORIGIN (I made another
> > post about the escaping being wrong on that).
> >
> > Now my issue is with installing these shared libraries.
> >
> > I have a separate SConscript file for clarity. Therefore I refer to the
> > libraries by name:
> >
> > libs = env.InstallVersionedLib( '.', env.Glob( '$ABS_BUILD_DIR/*.so' ) )
> >
> > The problem is that this installs only one specific version. I'm not
> > sure how to get the links as well.  Do I need to explicitly list the
> > versions, or should this be done automatically from the information
> > contained in the so file?
> >
>
>
> --
> edA-qa mort-ora-y
> http://mortoray.com/
>
> Leaf - the language we always wanted
> http://leaflang.org/
>
> _______________________________________________
> Scons-users mailing list
> Scons-users at scons.org
> https://pairlist4.pair.net/mailman/listinfo/scons-users
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://pairlist4.pair.net/pipermail/scons-users/attachments/20170805/dc5b6de5/attachment.html>


More information about the Scons-users mailing list