Dne 21.10.2016 v 10:02 tcak via Digitalmars-d napsal(a):
On Friday, 21 October 2016 at 04:16:38 UTC, mogu wrote:
[...]
Yes, we (I and one another person on this forum) have the same problem.
As a temporary solution, while compiling your program, add
-defaultlib=libphobos2.so -fPIC
This solved my problem on Ubuntu 16.10. But with one problem. Now, while
you are copying your executable to another computer, you need to copy
libphobos2.so (in my case libphobos2.so.17) to that computer's /usr/lib
as well.
Or you can build your own version of dmd with PIC enabled and add -fPIC
to /etc/dmd.conf