Thread overview
druntime
Jan 08, 2011
Ellery Newcomer
Jan 09, 2011
Jonathan M Davis
Jan 09, 2011
Ellery Newcomer
Jan 09, 2011
Jonathan M Davis
Jan 09, 2011
Jacob Carlborg
January 08, 2011
where did libdruntime.a go in dmd.2.051.zip:/linux/lib ?
January 09, 2011
On Saturday 08 January 2011 13:32:19 Ellery Newcomer wrote:
> where did libdruntime.a go in dmd.2.051.zip:/linux/lib ?

I think that it's included inside of libphobos.a now, and has been for a few releases. The libraries are still separate, and you can build them separately, but from what I can tell, it looks like phobos ends up including the druntime stuff in itself when you build it. So, having a separate libdruntime.a would be kind of pointless unless you were specifically trying to avoid linking in any Phobos stuff, which would be highly abnormal, and in which case you could build druntime yourself.

But Sean or someone else who's been involved in that build process may have a better answer as to what exactly is going on now and why.

- Jonathan M Davis
January 09, 2011
On 01/08/2011 09:02 PM, Jonathan M Davis wrote:
> On Saturday 08 January 2011 13:32:19 Ellery Newcomer wrote:
>> where did libdruntime.a go in dmd.2.051.zip:/linux/lib ?
>
> I think that it's included inside of libphobos.a now, and has been for a few
> releases. The libraries are still separate, and you can build them separately,
> but from what I can tell, it looks like phobos ends up including the druntime
> stuff in itself when you build it. So, having a separate libdruntime.a would be
> kind of pointless unless you were specifically trying to avoid linking in any
> Phobos stuff, which would be highly abnormal, and in which case you could build
> druntime yourself.

Figures, but I thought I looked in libphobos and didn't see druntime symbols.. oh well.

And yeah, it's been a few releases since I've needed to build my own rpms
January 09, 2011
On Saturday 08 January 2011 19:16:26 Ellery Newcomer wrote:
> On 01/08/2011 09:02 PM, Jonathan M Davis wrote:
> > On Saturday 08 January 2011 13:32:19 Ellery Newcomer wrote:
> >> where did libdruntime.a go in dmd.2.051.zip:/linux/lib ?
> > 
> > I think that it's included inside of libphobos.a now, and has been for a few releases. The libraries are still separate, and you can build them separately, but from what I can tell, it looks like phobos ends up including the druntime stuff in itself when you build it. So, having a separate libdruntime.a would be kind of pointless unless you were specifically trying to avoid linking in any Phobos stuff, which would be highly abnormal, and in which case you could build druntime yourself.
> 
> Figures, but I thought I looked in libphobos and didn't see druntime symbols.. oh well.
> 
> And yeah, it's been a few releases since I've needed to build my own rpms

Well, I haven't actually gone so far as to look at the symbols in the library, but there is no libdruntime.a - only a libphobos.a - and it works. And if you build phobos, you still need to build druntime first. So, really, the only way that it could really work from what I can see is that libphobos.a includes the stuff from libdruntime.a in it. Why or how, I don't know.

- Jonathan M Davis
January 09, 2011
On 2011-01-09 04:02, Jonathan M Davis wrote:
> On Saturday 08 January 2011 13:32:19 Ellery Newcomer wrote:
>> where did libdruntime.a go in dmd.2.051.zip:/linux/lib ?
>
> I think that it's included inside of libphobos.a now, and has been for a few
> releases. The libraries are still separate, and you can build them separately,
> but from what I can tell, it looks like phobos ends up including the druntime
> stuff in itself when you build it. So, having a separate libdruntime.a would be
> kind of pointless unless you were specifically trying to avoid linking in any
> Phobos stuff, which would be highly abnormal, and in which case you could build
> druntime yourself.
>
> But Sean or someone else who's been involved in that build process may have a
> better answer as to what exactly is going on now and why.
>
> - Jonathan M Davis

Since Phobos depends on druntime and both libraries are statically linked I think libdruntime.a has never been needed. It's never been listed in dmd.conf/ini as far as I know.

-- 
/Jacob Carlborg