[FFmpeg-devel] [PATCH 1/2] libavutil: Add av_visibility_hidden for setting hidden symbol visibility
Henrik Gramner
henrik at gramner.com
Mon Jul 11 15:12:28 EEST 2022
On Mon, Jul 11, 2022 at 11:19 AM Martin Storsjö <martin at martin.st> wrote:
> +#if (AV_GCC_VERSION_AT_LEAST(4,0) || defined(__clang__)) && (defined(__ELF__) || defined(__MACH__))
> +# define av_visibility_hidden __attribute__((visibility("hidden")))
> +#else
> +# define av_visibility_hidden
> +#endif
The usual approach is to compile with -fvisibility=hidden and
explicitly flag exported API symbols.
Is there a reason for doing this the other way around?
More information about the ffmpeg-devel
mailing list