http://dlang.org/dll-linux.html#dso7dmd lib.d -shared -fPIC -debug -gc -g -w -wi -defaultlib=libphobos2.so
Problem about using shared libphobos is that I need to install many different libraries on the target computer. On the web server, I don't want to install DMD. I compiled before a DLL with libphobos2.so, and on web server it started asking many different libraries which made me unhappy.