[Issue 16794] .deb not working on Ubuntu 16.10 because of default PIE linking

via Digitalmars-d-bugs digitalmars-d-bugs at puremagic.com
Fri Dec 23 09:56:57 PST 2016


https://issues.dlang.org/show_bug.cgi?id=16794

--- Comment #13 from Martin Nowak <code at dawg.eu> ---
Shared libraries are working, people were asking for PIE support with static
phobos libraries.

I'm running benchmarks atm., but even if those were OK for -fPIC on amd64, we
still have a few problems.

Phobos built with -fPIC can't be used without -fPIC (because some modules, e.g.
SHA1, check for version (D_PIC)) atm.

OTOH distributing phobos with and without PIC might bloat the binary package,
and runs into the annoying limitations of dmd's CLI to select the right one.

Using -fno-pie by default remains the easiest path forward.

--


More information about the Digitalmars-d-bugs mailing list