makekit icon indicating copy to clipboard operation
makekit copied to clipboard

Error when linking with a static library

Open raditham opened this issue 10 years ago • 1 comments

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

raditham avatar May 06 '15 00:05 raditham

Objects linked into a shared library must be PIC. This is not a restriction imposed by MakeKit specifically.

bkoropoff avatar May 19 '15 02:05 bkoropoff