-L-ldl needed on Linux

Unknown W. Brackets unknown at simplemachines.org
Sat Apr 12 13:42:30 PDT 2008


I had no idea.  I guess I should try to get my sneaker out of my mouth 
now...

I may see if I can find time to attach a patch in there (seems like 
something completely solvable using the frontend.)

-[Unknown]


Lars Ivar Igesund wrote:
> Bill Baxter wrote:
> 
>> Just wondering why I have to give dsss the -L-ldl flag manually when I
>> compile a Derelict-using program under Linux.
>>
>> Seems like it shouldn't be neecessary for me to have to specify that.
>> But who's to blame?
>> * Is it DMD's fault for not including in the default link libs?
>> * Is it DSSS's fault for not picking up that it's needed (or for not
>> puttin it in the default list of flags?)
>> * Is it Derelict's fault for somehow not telling DSSS that it wants to
>> use libdl on Linux?
>>
>> Any of those seem possible.  So anyone know the answer?
>>
>> Or is it just my fault for thinking I shouldn't have to stick a
>> version(linux) block in my dsss.conf file?
>>
>> --bb
> 
> It may be that it is derelict's fault for not working with the tools, but
> there is also the relevant bugzilla entries 
> 
> http://d.puremagic.com/issues/show_bug.cgi?id=1663
> 
> and
> 
> http://d.puremagic.com/issues/show_bug.cgi?id=1690
> 
> pragma(lib) should be implemented on all platforms, or removed from the spec
> entirely. I'd certainly prefer the former, as this probably is the one
> thing that a build tool normally cannot do much beyond what the compiler
> already does by telling the linker about always needed libraries (like the
> runtime).
> 


More information about the Digitalmars-d-learn mailing list