strange -fPIC compilation error
TheGag96 via Digitalmars-d-learn
digitalmars-d-learn at puremagic.com
Tue Nov 1 11:13:32 PDT 2016
On Monday, 31 October 2016 at 07:16:50 UTC, Sebastien Alaiwan
wrote:
> Hello,
> From GCC 6.2, -fpie is becoming the default setting at compile
> and at link time.
> As dmd uses GCC to link, now the code needs to be compiled with
> a special option.
> Which means you need, at the moment, to add the following
> options to your dmd.conf:
> -defaultlib=libphobos2.so -fPIC
> (the change from GCC is related to security and address space
> randomization).
So does this mean it's now impossible to compile statically until
this gets fixed?
More information about the Digitalmars-d-learn
mailing list