You copied the Doc URL to your clipboard.

--hide_all, --no_hide_all

This option enables you to control symbol visibility when building SVr4 shared objects.


Use --no_hide_all to force the compiler to use STV_DEFAULT visibility for all extern variables and functions if they do not use __declspec(dll*) or __attribute__((visibility("visibility_type"))). This also forces them to be preemptible at runtime by a dynamic loader.

When building a System V or ARM Linux shared library, use --no_hide_all together with --apcs /fpic.

Use --hide_all to set the visibility to STV_HIDDEN, so that symbols cannot be dynamically linked.


The default is --hide_all.