On Friday, 21 October 2016 at 10:05:40 UTC, Daniel Kozak wrote:
Or you can build your own version of dmd with PIC enabled and add -fPIC to /etc/dmd.conf
I rebuilded phobos and druntime with -fPIC and replaced the static libphobos2.a. Now it works well. But I have to specified -fPIC to dmd each time to build. Should dmd make -fPIC the default?