https://issues.dlang.org/show_bug.cgi?id=16794
--- Comment #13 from Martin Nowak <c...@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. --