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

via Digitalmars-d-bugs digitalmars-d-bugs at puremagic.com
Sun Dec 4 12:39:03 PST 2016


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

Martin Nowak <code at dawg.eu> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
            Summary|Official .deb packages must |.deb not working on Ubuntu
                   |compile libphobos2.a with   |16.10 because of default
                   |-fPIC                       |PIE linking

--- Comment #10 from Martin Nowak <code at dawg.eu> ---
Let me clarify a few points.

- We're not going to ship PIC for static archives on all platforms. The
performance penalty is too big for that.
  At the moment we only have a single linux build
(https://github.com/dlang/installer/blob/8b3c7efe1e049f73ec5fc526a849904bf80b434d/create_dmd_release/build_all.d#L33),
so custom static PIC libraries for Ubuntu require quite some changes to the
build scripts.

- Static linking partly defeats the purpose of PIE and ASLR. I'm still missing
some reference on how the Ubuntu team deals with static libraries.

Using -fno-pie might be the better choice for now.

--


More information about the Digitalmars-d-bugs mailing list