[Scons-users] SharedLIbrary with SHLIBVERSION
Paweł Tomulik
ptomulik at meil.pw.edu.pl
Tue Apr 23 10:42:38 EDT 2019
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)
Best regards!
--
Paweł Tomulik
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://pairlist4.pair.net/pipermail/scons-users/attachments/20190423/f635464a/attachment.html>
More information about the Scons-users
mailing list