diff options
author | Dylan Baker <[email protected]> | 2020-04-24 13:10:41 -0700 |
---|---|---|
committer | Marge Bot <[email protected]> | 2020-06-01 18:59:18 +0000 |
commit | a8e2d79e0228106d11b6ceeb38f4ffb587f0a819 (patch) | |
tree | 18eef778716e07f993f568e54920e2242fd0b717 /src/broadcom/drm-shim/meson.build | |
parent | fc7301865e1eabe06d4225af596e7334c4094fe5 (diff) |
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 <[email protected]>
Reviewed-by: Eric Engestrom <[email protected]>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/4740>
Diffstat (limited to 'src/broadcom/drm-shim/meson.build')
-rw-r--r-- | src/broadcom/drm-shim/meson.build | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/src/broadcom/drm-shim/meson.build b/src/broadcom/drm-shim/meson.build index d053d2c5b59..ab474b648ee 100644 --- a/src/broadcom/drm-shim/meson.build +++ b/src/broadcom/drm-shim/meson.build @@ -23,7 +23,7 @@ libv3d_noop_drm_shim = shared_library( 'v3d_noop.c', include_directories: [inc_include, inc_src, inc_mapi, inc_mesa, inc_gallium, inc_gallium_aux], dependencies: dep_drm_shim, - c_args : c_vis_args, + gnu_symbol_visibility : 'hidden', install : true, ) @@ -42,7 +42,8 @@ if dep_v3dv3.found() v3d_xml_pack ], include_directories : [inc_include, inc_src, inc_mapi, inc_mesa, inc_gallium, inc_gallium_aux, inc_broadcom, inc_gallium_v3d], - c_args : [c_vis_args, no_override_init_args, '-DV3D_VERSION=' + ver, v3dv3_c_args], + c_args : [no_override_init_args, '-DV3D_VERSION=' + ver, v3dv3_c_args], + gnu_symbol_visibility : 'hidden', dependencies: [dep_valgrind, dep_thread, dep_v3dv3], ) endforeach @@ -56,7 +57,8 @@ if dep_v3dv3.found() dependencies: [idep_mesautil, dep_dl, dep_drm_shim, dep_v3dv3], link_with: per_version_libs, include_directories : [inc_include, inc_src, inc_mapi, inc_mesa, inc_gallium, inc_gallium_aux, inc_broadcom, inc_gallium_v3d], - c_args : [c_vis_args, no_override_init_args, '-std=gnu99', v3dv3_c_args], + c_args : [no_override_init_args, '-std=gnu99', v3dv3_c_args], + gnu_symbol_visibility : 'hidden', cpp_args : [v3dv3_c_args] ) endif |