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

Thomas Mader <[email protected]> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |[email protected]

--- Comment #10 from Thomas Mader <[email protected]> ---
Had the same problem with binutils 2.28 and dmd 2.075.0 on NixOS with druntime
and phobos.

Working around the problem as suggested with

      make -f posix.mak PIC=-fPIC INSTALL_DIR=$out DMD=$DMD

works for phobos.

But for druntime I needed to patch a Makefile, 

    substituteInPlace druntime/test/common.mak \
        --replace "DFLAGS:=" "DFLAGS:=-fPIC "

otherwise the link test in the druntime unittests would fail when running with

      make -f posix.mak unittest PIC=-fPIC DMD=$DMD BUILD=release

--

Reply via email to