status of shared libs

Johannes Pfau nospam at example.com
Sun Apr 7 10:38:58 PDT 2013


Am Sun, 07 Apr 2013 18:36:04 +0200
schrieb Joseph Rushton Wakeling <joseph.wakeling at webdrake.net>:

> On 04/06/2013 04:22 AM, Walter Bright wrote:
> > On 4/5/2013 7:18 PM, Ellery Newcomer wrote:
> >> is there a roadmap for druntime/phobos support of shared libraries?
> >>
> >> just built dmd from master, and I still can't coax out a 64 bit .so
> > 
> > awaiting:
> > 
> > https://github.com/D-Programming-Language/phobos/pull/1240
> 
> I see it's been added :-)
> 
> Are there any extra flags that need to be added to dmd.conf for this
> to work successfully?  On my system I find that the shared library is
> not found when running programs built against it:
> 
>    error while loading shared libraries: libphobos2so.so: cannot load
> shared object file: no such file or directory
> 
> I can get round this by exporting /opt/dmd/lib to LD_LIBRARY_PATH but
> if I recall right, this is a frowned-upon way of identifying where
> shared libraries are to be found ...
> 

In theory: Add the .so directory to /etc/ld.so.conf, run ldconfig
http://linux.die.net/man/8/ldconfig

But: This usually requires proper version information in the .so library
and a properly set soname. I doubt anyone has looked into that yet.


More information about the Digitalmars-d mailing list