dmd or phobos were broken in ubuntu 16.10 d-apt

Daniel Kozak via Digitalmars-d digitalmars-d at puremagic.com
Fri Oct 21 03:05:40 PDT 2016


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


More information about the Digitalmars-d mailing list