digitalmars.D - Build Linux shared library from DMD
- Steve Teale (3/3) Nov 10 2010 In the Apache mod_d thread I saw:
- Jacob Carlborg (5/8) Nov 10 2010 Phobos cannot currently be used as a dynamic library. DMD cannot produce...
- JFD (3/11) Nov 10 2010 GDC can build shared library (phobos works, too), but currently not DMD,...
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?
Nov 10 2010
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 libraries. -- /Jacob Carlborg
Nov 10 2010
== Quote from Jacob Carlborg (doob me.com)'s articleOn 2010-11-10 20:12, Steve Teale wrote:GDC can build shared library (phobos works, too), but currently not DMD, it seems. Please see that other thread for more details.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 libraries.
Nov 10 2010