From a8e2d79e0228106d11b6ceeb38f4ffb587f0a819 Mon Sep 17 00:00:00 2001 From: Dylan Baker Date: Fri, 24 Apr 2020 13:10:41 -0700 Subject: 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 Reviewed-by: Eric Engestrom Part-of: --- src/broadcom/drm-shim/meson.build | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) (limited to 'src/broadcom/drm-shim/meson.build') 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 -- cgit v1.2.3