Tells the compiler to generate position-independent code.
Windows: None
Linux: Code Generation > Generate Position Independent Code
Mac OS: None
IA-32 architecture, Intel® 64 architecture, IA-64 architecture
Linux: | -fpic -fno-pic |
Mac OS: | None |
Windows: | None |
None
-fno-pic | The compiler does not generate position-independent code. |
This option tells the compiler to generate position-independent code.
It specifies full symbol preemption. Global symbol definitions as well as global symbol references get default (that is, preemptable) visibility unless explicitly specified otherwise.
On systems using IA-32 architecture and Intel® 64 architecture, this option must be used when building shared objects.
This option can also be specified as -fPIC.
None