What is going on with the ubuntu/debian debacle ?

Johannes Pfau via Digitalmars-d digitalmars-d at puremagic.com
Sat Nov 26 00:59:17 PST 2016


Am Fri, 25 Nov 2016 22:52:18 +0000
schrieb H. S. Teoh <hsteoh at quickfur.ath.cx>:


> - I did some googling, and found references to compiling with 
> `-fPIC -defaultlib=libphobos2.so` instead, i.e., if you don't 
> want to recompile druntime/phobos with -fPIC yourself.  This also 
> works, *provided* you install the Phobos .so's in your system's 
> lib directories.  If you're running dmd off the git repos 
> directly, like I am, this requires symlinking libphobos2.*.so 
> into /usr/local/lib or /usr/lib, otherwise none of your D 
> executables will run.  I consider this too intrusive, especially 
> for the bleeding edge phobos off git HEAD, so I settled for 
> building libphobos.a with -fPIC instead, as described above.
> 

You can also add the install path of the phobos/druntime.so files to the
LD_LIBRARY_PATH environment variable.



More information about the Digitalmars-d mailing list