[Issue 5278] gentoo's 'hardended' gcc doesn't work with dmd
via Digitalmars-d-bugs
digitalmars-d-bugs at puremagic.com
Tue Oct 25 00:18:31 PDT 2016
https://issues.dlang.org/show_bug.cgi?id=5278
Lodovico Giaretta <lodovico at giaretart.net> changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |lodovico at giaretart.net
--- Comment #33 from Lodovico Giaretta <lodovico at giaretart.net> ---
I can confirm that putting `-fPIC -defaultlib=libphobos2.so` in dmd.conf makes
DMD work correctly on hardened systems (tested on Ubuntu 16.10).
Binaries built this way are PIE and have Phobos linked dynamically. I didn't
manage to find a configuration that allows me to statically link Phobos, with
or without PIE.
--
More information about the Digitalmars-d-bugs
mailing list