Skip to main content

pic

Enable generation of position independent code.

pic "value"

Position Independent Code is required when building dynamic libraries, or static lib's that will be linked to dynamic libraries. PIC will be enabled by default when building dynamic libraries. It will be disabled by default otherwise.

Parameters

value specifies the desired PIC mode:

ValueDescription
OffDo not generate position independent code.
OnGenerate position independent code.

Applies To

Project configurations.

Availability

Premake 5.0.