You can use the -qvisibility option to
globally set visibility attributes for external linkage entities in
your program. The entities have the visibility attribute that is specified
by the -qvisibility option if they do not get visibility
attributes from pragma directives, explicitly specified attributes,
or propagation rules.