Intel® Fortran Compiler 17.0 Developer Guide and Reference

static

Prevents linking with shared libraries.

Syntax

Linux:

-static

macOS:

None

Windows:

/static

Arguments

None

Default

Linux: OFF
Windows: varies

On Linux* systems, the compiler links with shared libraries. On Windows* systems, /static is equivalent to option /MT.

Description

This option prevents linking with shared libraries. It causes the executable to link all libraries statically.

IDE Equivalent

None

Alternate Options

None

See Also