79797594

Date: 2025-10-23 09:14:21
Score: 1.5
Natty:
Report link

Okay so the post should probably renamed to: what does -fPIC do.

After searching a little bit I found out that when compiling a shared library in this case you have to specify -fPIC to allow position independent code PIC

Originally this issue came up because I tried to link a static library to a dynamic library. It is therefore important to also build the static library using -fPIC

Reasons:
  • No code block (0.5):
  • Self-answer (0.5):
  • Low reputation (0.5):
Posted by: Placeblock