makekit
makekit copied to clipboard
Error when linking with a static library
Hi Brian,
I am trying to link with a static libaray in makekitbuild environment and I get the following error:
relocation R_X86_64_32 can not be used when making a shared object; recompile with -fPIC
Recompiling the static library with -fPIC is out of question. How to fix this problem.
Thanks R.K
Objects linked into a shared library must be PIC. This is not a restriction imposed by MakeKit specifically.