Build Linux shared library from DMD

2010-11-10 Thread Steve Teale
In the Apache mod_d thread I saw: gcc -shared -Wl,-soname,libhello.so.0 -o libhello.so.0.0 libhello.a Has anyone tried this with libphobos2.a?

Re: Build Linux shared library from DMD

2010-11-10 Thread Jacob Carlborg
On 2010-11-10 20:12, Steve Teale wrote: In the Apache mod_d thread I saw: gcc -shared -Wl,-soname,libhello.so.0 -o libhello.so.0.0 libhello.a Has anyone tried this with libphobos2.a? Phobos cannot currently be used as a dynamic library. DMD cannot produce correct PIC for building dynamic

Re: Build Linux shared library from DMD

2010-11-10 Thread JFD
== Quote from Jacob Carlborg (d...@me.com)'s article On 2010-11-10 20:12, Steve Teale wrote: In the Apache mod_d thread I saw: gcc -shared -Wl,-soname,libhello.so.0 -o libhello.so.0.0 libhello.a Has anyone tried this with libphobos2.a? Phobos cannot currently be used as a dynamic