Tells the compiler to generate position-independent code.
Windows: None
Linux: Code Generation > Generate Position Independent Code
Mac OS: None
IA-32, IntelŪ EM64T, IntelŪ ItaniumŪ architecture
Linux: | -fpic -fno-pic |
Mac OS: | None |
Windows: | None |
None
OFF | 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 IA-32 systems and IntelŪ EM64T systems, this option must be used when building shared objects.
This option can also be specified as -fPIC.
Linux: -Kpic, -KPIC, -Knopic,
-KNOPIC (these are deprecated
options)
Mac OS: None
Windows: None