Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Even with -fvisibility=hidden added to CFLAGS, any symbol which is given a default visibility attribute ends up exported in the dynamic library. This happens through zstd_internal.h which defines ..._STATIC_LINKING_ONLY before including various header files, and is included for example in lib/common/pool.c. To avoid this, this patch distinguishes static and non-static APIs; only the latter are exported, the former are hidden. In addition, -fvisibility=hidden is moved to CFLAGS for libzstd-mt (as done previously for libzstd). Signed-off-by: Stephen Kitt <[email protected]>
- Loading branch information