The compiler is able to generater position independant code but as far as I remember, there are still some issues in druntime which make it difficult to create dynamic librarys in D. You need to somehow initialize the runtime.
- Creating a shared library in D : undefined symbol: _deh_b... Timo Westkämper
- Re: Creating a shared library in D : undefined symbo... mta`chrono
- Re: Creating a shared library in D : undefined symbo... Jacob Carlborg
- Re: Creating a shared library in D : undefined s... Timo Westkämper
