[Scons-dev] Issue 2869 - Versioned shared libraries

Chris BeHanna chris at behanna.org
Fri Oct 26 11:29:52 EDT 2012


On Oct 25, 2012, at 19:33 , William Deegan <bill at baddogconsulting.com> wrote:


> All,

> On Oct 25, 2012, at 1:16 PM, Chris BeHanna <chris at behanna.org> wrote:

>

>> 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. :-/

>

> Does the implementation work with both linux and OSX?


If I can find time, I'll test it soon--I have Linux and OS X available. I do not have a current version of MSVC to test on Windows, though.

--
Chris BeHanna
chris at behanna.org


More information about the Scons-dev mailing list