Hi, When building a certain software, I receive this error message during the link stage:

Code:
/usr/bin/ld: _obj/device/r4300/x86_64/dyna_start.o: relocation R_X86_64_PC32 against undefined symbol `g_dev' can not be used when making a shared object; recompile with -fPIC /usr/bin/ld: final link failed: Bad value
I followed the advice and added -fPIC to all the the standard building rules, except one that uses nasm instead gcc or g++. However, the error message persisted.

So I am open to suggestions.