Build Linux shared library from DMD

Jacob Carlborg doob at me.com
Wed Nov 10 12:33:13 PST 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


More information about the Digitalmars-d mailing list