July 08, 2013 [phobos] New Linux phobos shared library | ||||
---|---|---|---|---|
| ||||
From dmd v2.063, release zip file includes Linux phobos shared libraries. As shared libraries are needed at runtime too, they should be allowed to install multiple versions of phobos shared libs. at same time. If not, every program compiled against phobos shared libs. will be forced to be recompiled every new dmd/phobos release. To avoid this, phobos shared libs. should include some version number on its name. I propose to name the shared phobos library as "libphobos2.so.0.nn.0", where "nn" is the current dmd version. The last zero is just for bug/regressions fixes. As phobos changes its interface (almost) every new release, I propose to set its SONAME to "libphobos2.so.0.nn", so when phobos become stable we can change the library name to "libphobos2.so.1.nn.0" and its SONAME to "libphobos2.so.1" Some info about Linux shared libraries: http://tldp.org/HOWTO/Program-Library-HOWTO/shared-libraries.html -- Jordi Sayol _______________________________________________ phobos mailing list phobos@puremagic.com http://lists.puremagic.com/mailman/listinfo/phobos |
July 08, 2013 Re: [phobos] New Linux phobos shared library | ||||
---|---|---|---|---|
| ||||
Posted in reply to Jordi Sayol | Nice! Jordi, how about migrating that nice doc to the main site? Andrei On 7/8/13 10:06 AM, Jordi Sayol wrote: > From dmd v2.063, release zip file includes Linux phobos shared libraries. As shared libraries are needed at runtime too, they should be allowed to install multiple versions of phobos shared libs. at same time. If not, every program compiled against phobos shared libs. will be forced to be recompiled every new dmd/phobos release. To avoid this, phobos shared libs. should include some version number on its name. > > I propose to name the shared phobos library as "libphobos2.so.0.nn.0", where "nn" is the current dmd version. The last zero is just for bug/regressions fixes. > > As phobos changes its interface (almost) every new release, I propose to set its SONAME to "libphobos2.so.0.nn", so when phobos become stable we can change the library name to "libphobos2.so.1.nn.0" and its SONAME to "libphobos2.so.1" > > Some info about Linux shared libraries: > http://tldp.org/HOWTO/Program-Library-HOWTO/shared-libraries.html > _______________________________________________ phobos mailing list phobos@puremagic.com http://lists.puremagic.com/mailman/listinfo/phobos |
Copyright © 1999-2021 by the D Language Foundation