[Scons-users] Setting macOS shared library versioning information with scons

Paweł Tomulik ptomulik at meil.pw.edu.pl
Sat Oct 13 05:29:07 EDT 2018


Hi Ryan,

W dniu 09.05.2018 o 19:30, Ryan Schmidt pisze:
> [...]
> 
> 
> 
> The CHANGES.txt entry for scons 2.4.1 states:
> 
> - InstallVersionedLib() doesn't use SHLIBVERSION anymore.
> 
> So the change sounds deliberate. But it doesn't explain why.
> 
AFAIR, the assumption introduced in 2.4.1 was, that InstallVersionedLib
will take the versioned file name/entry as an argument, that is in

InstallVersionedLib(libdir, lib_shared)

the lib_shared points to something, like 'libfoo.so.1.2.3'. The version
info is provided in the file suffix. This was justified by other changes
- the target file produced by linker was defined as the versioned
'libfoo.so.1.2.3', so the target node could be naturally passed to
InstallVersionedLib. The SHLIBVERSION variable found no use in the
installer, as the installer's purpose was to just copy the versioned
library file to the target directory, and eventually create/copy
symlinks libfoo.so -> libfoo.so.1.2.3, libfoo.so.1 -> libfoo.so.1.2.3.


-- 
Pawel Tomulik


More information about the Scons-users mailing list