Developer Guide and Reference

ID 767251
Date 10/31/2024
Public
Document Table of Contents

pie

Determines whether the compiler generates position-independent code that will be linked into an executable.

Syntax

Linux:

-pie

-no-pie

Windows:

None

Arguments

None

Default

-no-pie

The compiler does not generate position-independent code that will be linked into an executable.

Description

This option determines whether the compiler generates position-independent code that will be linked into an executable. To enable generation of position-independent code that will be linked into an executable, specify -pie.

To disable generation of position-independent code that will be linked into an executable, specify -no-pie.

IDE Equivalent

None

Alternate Options

None

See Also