[Issue 15054] DMD doesn't work with hardening-wrapper

via Digitalmars-d-bugs digitalmars-d-bugs at puremagic.com
Thu Jul 20 23:47:06 PDT 2017


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

Vladimir Panteleev <dlang-bugzilla at thecybershadow.net> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |RESOLVED
         Resolution|---                         |WORKSFORME

--- Comment #1 from Vladimir Panteleev <dlang-bugzilla at thecybershadow.net> ---
I believe this has been addressed in the latest D releases.

There has been a very similar problem recently, with Arch Linux switching to
-fPIE by default for everything. This resulted in very similar linking errors
when building anything, because libphobos2.a was not built with -fPIC.

A workaround was to create a cc/gcc/c++/g++ wrapper somewhere in PATH, which
adds -no-pie to the gcc invocation used for linking.

However, this has been properly fixed in the latest releases from Arch Linux
repositories, where libphobos2.a is now built with -fPIC and generating
position-independent binaries is enabled by default.

Please reopen if this is still an issue with the latest Arch Linux DMD 2.075.0
package.

--


More information about the Digitalmars-d-bugs mailing list