Linux linker errors with binutils >= 2.27
Marco Leise via Digitalmars-d
digitalmars-d at puremagic.com
Wed Jul 5 13:04:49 PDT 2017
This is the bug report for binutils 2.28 and the "module is
already defined in" error:
https://issues.dlang.org/show_bug.cgi?id=17375
Basically you need to add -fPIC to the command line for the
executable when linking against shared objects. One way to do
so is to add that switch to dmd.conf. Now that x86 32-bit is
dying I feel that's acceptable in most situations.
--
Marco
More information about the Digitalmars-d
mailing list