[Issue 17375] colliding modules detected with binutils 2.28 linker and shared libraries
via Digitalmars-d-bugs
digitalmars-d-bugs at puremagic.com
Mon Jul 31 00:48:27 PDT 2017
https://issues.dlang.org/show_bug.cgi?id=17375
Thomas Mader <thomas.mader at gmail.com> changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |thomas.mader at gmail.com
--- Comment #10 from Thomas Mader <thomas.mader at gmail.com> ---
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
--
More information about the Digitalmars-d-bugs
mailing list