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:
@@ -37,12 +37,12 @@ libgles2 = shared_library(
|
||||
['../entry.c', es2_glapi_mapi_tmp_h],
|
||||
c_args : [
|
||||
c_msvc_compat_args,
|
||||
c_vis_args,
|
||||
_es2_c_args,
|
||||
'-DMAPI_MODE_BRIDGE',
|
||||
'-DMAPI_ABI_HEADER="@0@"'.format(es2_glapi_mapi_tmp_h.full_path()),
|
||||
gcc_lto_quirk,
|
||||
],
|
||||
gnu_symbol_visibility : 'hidden',
|
||||
link_args : [ld_args_gc_sections],
|
||||
include_directories : [inc_src, inc_include, inc_mapi],
|
||||
link_with : libglapi,
|
||||
|
||||
Reference in New Issue
Block a user