[Scons-dev] Tutorial for Linux versioned libraries
Alexandre Feblot
alexandre at feblot.fr
Tue May 19 08:57:40 EDT 2015
env = Environment()
env.SharedLibrary('SharedVersionedLib', 'file.c', SHLIBVERSION = '1.2.3')
env.SharedLibrary('OtherSharedVersionedLib', 'file.c', SHLIBVERSION =
'2.3.4')
creates
libOtherSharedVersionedLib.so -> libOtherSharedVersionedLib.so.2*
libOtherSharedVersionedLib.so.2 -> libOtherSharedVersionedLib.so.2.3.4*
libOtherSharedVersionedLib.so.2.3.4*
libSharedVersionedLib.so -> libSharedVersionedLib.so.1*
libSharedVersionedLib.so.1 -> libSharedVersionedLib.so.1.2.3*
libSharedVersionedLib.so.1.2.3*
2015-05-19 14:49 GMT+02:00 anatoly techtonik <techtonik at gmail.com>:
> On Tue, May 19, 2015 at 12:32 AM, Alexandre Feblot <alexandre at feblot.fr>
> wrote:
> > Hi,
> >
> > Anatoly, I may not understand what you’re after (and especially your 5
> > questions), but I build and install versioned shared libraries
> successfully
> > with SCons 2.3.4 on Linux (and since 2.3.2, I think).
> > This PR (merged for 2.3.5 or 2.4) lets me use it properly too on Solaris:
> >
> https://bitbucket.org/scons/scons/pull-request/186/attempt-to-fix-versionned-shared-library/diff
>
> From that file there is an example:
>
> EnsureSConsVersion(2, 3, 3)
> env = Environment()
> env['SHLIBVERSION'] = '1.2.3'
> env.SharedLibrary('SharedVersionedLib', 'file.c')
>
> In RHVoice I have to build two versioned libs with different
> numbers. How to setup that SHLIBVERSION for them?
> _______________________________________________
> Scons-dev mailing list
> Scons-dev at scons.org
> https://pairlist2.pair.net/mailman/listinfo/scons-dev
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://pairlist2.pair.net/pipermail/scons-dev/attachments/20150519/7e85b3fb/attachment.html>
More information about the Scons-dev
mailing list