-G

Category

Output control

Pragma equivalent

None.

Purpose

Generates a shared object enabled for runtime linking.

Syntax

Read syntax diagramSkip visual syntax diagram
>>- -G---------------------------------------------------------><

Usage

The compiler automatically exports all global symbols from the shared object unless you specify which symbols to export by using -bE:, -bexport:, or -bnoexpall. You can also prevent weak symbols from being exported by using the -qnoweakexp option. To save the export list to a file, use the -qexpfile option.

Predefined macros

None.

Related information