-pic
Generates position-independent code, suitable for linking into a shared library.
Use this option when compiling code for inclusion in a shared object.
Parent topic:
Compiler Options