[Scons-dev] Issue 2869 - Versioned shared libraries

Chris BeHanna chris at behanna.org
Thu Oct 25 16:16:50 EDT 2012


On Oct 25, 2012, at 15:07 , "Managan, Rob" <managan1 at llnl.gov> wrote:


> Hi Chris,

>

> Thanks for the info. Sounds like I should have the Install function check

> that the version numbers match. In the use case where Install does not

> know what the version number is then I will believe the one in the library

> name!

>

> Of course, in the example from Eric Raymond on OSX there is only one

> symlink and the version number is located differently.


Yes, it's very, very different on OS X. OS X uses "Mach-O" format rather than ELF, and spells ".so" as ".dylib", plus it reverses the order of the version number and the file type suffix:

libcurl.so.4 => libcurl.4.dylib

Mach-O also uses a "compatibility version" that is distinct from the version that appears in the filename. :-/

--
Chris BeHanna
chris at behanna.org


More information about the Scons-dev mailing list