[Scons-users] SharedLIbrary with SHLIBVERSION

Bill Deegan bill at baddogconsulting.com
Tue Apr 23 10:55:51 EDT 2019


On Tue, Apr 23, 2019 at 10:42 AM Paweł Tomulik <ptomulik at meil.pw.edu.pl>
wrote:

> W dniu 19.04.2019 o 23:03, Jason Kenny pisze:
>
> Just a quick question.
>
> shouldn't SharedLIbrary() return the symlinks that it will generate? they
> are targets it generates however it does not return nodes to these items in
> the list
>
> example:
>
> out  = env.SharedLibrary(target='mylib',source="a.c", SHLIBVERSION='1.2.3')
> print([str(i) for i in out])
>
> results in the
> ['libmylib.so.1.2.3']
>
> I would have expected:
> ['libmylib.so.1.2.3','libmylib.so.1.2','libmylib.so.1','libmylib.so']
>
>
> Symlinks get created as side effects of out[0]. You may find them in
> out[0].side_effects.
>
>
> Mixing library with symlinks in one target list could break (alerady
> existsing) codes like this
>
>
>     lib = env.SharedLibrary(....)
>
>     prg = env.Program(..., LIBS = lib)
>

Not that this already isn't safe to use on windows as lib will contain both
the dll and the .lib (in most cases)

-Bill
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://pairlist4.pair.net/pipermail/scons-users/attachments/20190423/40f138a4/attachment-0001.html>


More information about the Scons-users mailing list