2

I cannot recompile the library in question as it is being provided by a vendor that does not offer source code, only their .a file.

Is there a way to include their static library in my shared object that requires -fPIC?

When attempting this I generate this error:

/usr/bin/ld: /path/to/lib/libtheirs.a(theirs.o): relocation R_X86_64_32 against `.bss' can not be used when making a shared object; recompile with -fPIC
/usr/bin/ld: /path/to/lib/libtheirs.a: could not read symbols: Bad value
Kevin Panko
  • 8,356
  • 19
  • 50
  • 61
tylerjw
  • 802
  • 4
  • 14
  • 28

0 Answers0