On 26/03/2018 1:05 AM, Nordlöw wrote:
If my homebuilt dmd fails to build my dub project with message

/usr/bin/ld: error: .dub/build/application-unittest-linux.posix-x86_64-dmd_2079-C9019ECA621321CC168B385F53D82831/knetquery.o: requires dynamic R_X86_64_32 reloc against '_D6object9Throwable7__ClassZ' which may overflow at runtime; recompile with -fPIC

what have I done wrong?

Where should I add the -fPIC switch?

-fPIC needs to go into dmd's configuration file.

Reply via email to