meson: use gnu_symbol_visibility argument
This uses a meson builtin to handle -fvisibility=hidden. This is nice because we don't need to track which languages are used, if C++ is suddenly added meson just does the right thing. Acked-by: Matt Turner <mattst88@gmail.com> Reviewed-by: Eric Engestrom <eric@engestrom.ch> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/4740>
This commit is contained in:
@@ -162,10 +162,10 @@ libegl = shared_library(
|
||||
egl_lib_name,
|
||||
files_egl,
|
||||
c_args : [
|
||||
c_vis_args,
|
||||
c_args_for_egl,
|
||||
'-D_EGL_NATIVE_PLATFORM=_EGL_PLATFORM_@0@'.format(egl_native_platform.to_upper()),
|
||||
],
|
||||
gnu_symbol_visibility : 'hidden',
|
||||
include_directories : incs_for_egl,
|
||||
link_with : [link_for_egl, libglapi],
|
||||
link_args : [ld_args_bsymbolic, ld_args_gc_sections],
|
||||
|
Reference in New Issue
Block a user