Use explicitly declared symbol visibility
The GCC (and other) compilers have a support for declaring symbol visibility, see https://gcc.gnu.org/wiki/Visibility
The GCC (and other) compilers have a support for declaring symbol visibility, see https://gcc.gnu.org/wiki/Visibility