Intel® Fortran Compiler Classic and Intel® Fortran Compiler Developer Guide and Reference

ID 767251
Date 7/13/2023
Public

A newer version of this document is available. Customers should click here to go to the newest version.

Document Table of Contents

fpic

Determines whether the compiler generates position-independent code.

Syntax

Linux:

-fpic

-fno-pic

macOS:

-fpic

-fno-pic

Windows:

None

Arguments

None

Default

-fno-pic

The compiler does not generate position-independent code.

Description

This option determines whether the compiler generates position-independent code.

Option -fpic specifies full symbol preemption. Global symbol definitions as well as global symbol references get default (that is, preemptable) visibility unless explicitly specified otherwise.

Option -fpic must be used when building shared objects.

This option can also be specified as -fPIC.

IDE Equivalent

None

Alternate Options

None