DMD Fails with fPIC error

Mike Wey via Digitalmars-d-learn digitalmars-d-learn at puremagic.com
Sun Jun 15 02:10:52 PDT 2014


On 06/14/2014 06:37 PM, Reuben wrote:
> It looks like the only difference is which version of Phobos we link. I
> think the reason for this might be that since my version of gcc is
> hardened, it uses -fPIE by default for linking.
> (http://wiki.gentoo.org/wiki/Hardened/Toolchain#Automatic_generation_of_Position_Independent_Executables_.28PIEs.29)

In that case the static Phobos needs to be build with -fPIC, which 
currently isn't the case looking at the Ebuild.

-- 
Mike Wey


More information about the Digitalmars-d-learn mailing list