Names and things
David Nadlinger via digitalmars-d-ldc
digitalmars-d-ldc at puremagic.com
Sun Dec 21 11:44:25 PST 2014
Hi Russel,
On 12/21/2014 05:45 PM, Russel Winder via digitalmars-d-ldc wrote:
> From what I can tell, building from Git master/HEAD and using d-apt
> package on Debian, you get a libphobos2-ldc.a and also the various
> shared object files. It appears that the Fedora Rawhide package ships
> libphobos-ldc.so and related links but there is no .a file.
Currently, building LDC straight from Git only gives you either the
shared or the static libraries. We definitely want to offer both in the
next release packages, though. From your description, I gather that
Debian already does just the same thing.
> The most important thing here is what should be the name of the
> library, should it have a 2?
Yes, phobos2-ldc is the correct name of the library, in analogy to DMD's
phobos2.
> Should the Fedora package be remade?
Probably, yes. I'd encourage you to file a bug on their tracker –
apparently they modify the library name on purpose. As to why this could
be, I don't really have an idea (before shared library support, the name
used to be "libphobos-ldc.a" without the "2", but different D releases
are not binary-compatible anyway).
> Do I need to cope with both in the SCons tooling?
If you just use LDC for linking, you don't need to care at all, as long
as they configure the compiler correctly. I don't know whether this is
an option for you, though.
Best,
David
More information about the digitalmars-d-ldc
mailing list