-static

IDE Equivalent

GCC C Linker > Libraries > Link with static libraries

Syntax

-static

Arguments

None

Default

NOT SET

Description

Instructs the compiler to link with static libraries and prevents linking with shared libraries.

For more complete information about compiler optimizations, see our Optimization Notice.