[Scons-users] SHLIBVERSION questions

Bill Deegan bill at baddogconsulting.com
Sat Jun 6 12:59:21 EDT 2015


What version of SCons are you running?
There have been some fixes since 2.3.4 for this code
Can you try running the tip of default?

-Bill

On Fri, Jun 5, 2015 at 9:07 AM, Paweł Tomulik <ptomulik at meil.pw.edu.pl>
wrote:

> I have this simple sconstruct:
>
> env = Environment()
> tgt = env.SharedLibrary('test', ['test.cpp'], SHLIBVERSION='0.1.0')
> print tgt
>
> I observed, that the linking command is invoked each time I run scons,
> which is wrong:
>
> ptomulik at barakus:$ scons -Q
> ['libtest.so.0.1.0']
> g++ -o libtest.so.0.1.0 -shared -Wl,-Bsymbolic -Wl,-soname=libtest.so.0
> test.os
> ptomulik at barakus:$ scons -Q
> ['libtest.so.0.1.0']
> g++ -o libtest.so.0.1.0 -shared -Wl,-Bsymbolic -Wl,-soname=libtest.so.0
> test.os
>
> debug=explain shows this:
>
> ptomulik at barakus:$ scons -Q --debug=explain
> ['libtest.so.0.1.0']
> scons: rebuilding `libtest.so.0.1.0' because the contents of the build
> action changed
>                action: SharedFlagChecker(target, source, env)
>                        VersionedSharedLibrary(target, source, env)
> g++ -o libtest.so.0.1.0 -shared -Wl,-Bsymbolic -Wl,-soname=libtest.so.0
> test.os
>
>
> Is it something already known, or shall I submit a bug?
>
> Anyway, the SharedLibrary builder creates symlinks, but they do not
> appear in the function result (tgt contains only the library). Is this a
> bug or a feature? How can I guess what are the nodes produced by the
> builder?
>
> --
> Pawel Tomulik
> _______________________________________________
> 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/20150606/4435638e/attachment.html>


More information about the Scons-users mailing list